Block device request merging - repeated requests.

Jens Axboe axboe en suse.de
Lun Ene 31 15:20:03 CST 2000


On Mon, Jan 31 2000, David Woodhouse wrote:
> > but that is kind of hard to tell when you don't show any code. 
> 
> Attached. For its headers &c, grab the whole thing from 
> www.linux-mtd.infradead.org - there's a standalone tarball or a patch against 
> 2.3.41 there.

> void nftl_request(RQFUNC_ARG)
> {
> 	unsigned int dev, block, nsect;
> 	struct NFTLrecord *thisNFTL;
> 	char *buffer;
>  repeat:
> 	//cli();
> 	INIT_REQUEST;
> 	dev = MINOR(CURRENT->rq_dev);
> 	block = CURRENT->sector;
> 	nsect = CURRENT->nr_sectors;
			 ^^^^^^^^^^

Sure this should be CURRENT->current_nr_sectors.

-- 
*  Jens Axboe <axboe en suse.de>
*  Linux CD-ROM Maintainer
*  http://www.kernel.dk

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo en vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



Más información sobre la lista de distribución Ayuda