Re: Block device request merging - repeated requests.

From: Jens Axboe (axboe@suse.de)
Date: Mon Jan 31 2000 - 10:55:53 EST


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@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@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Jan 31 2000 - 21:00:28 EST