From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rusty Russell Subject: Re: PATCH 7/8] lguest: the block driver Date: Wed, 11 Apr 2007 14:00:24 +1000 Message-ID: <1176264024.26372.93.camel@localhost.localdomain> References: <1176203068.26372.21.camel@localhost.localdomain> <1176203130.26372.23.camel@localhost.localdomain> <1176203176.26372.25.camel@localhost.localdomain> <1176203231.26372.27.camel@localhost.localdomain> <1176203285.26372.29.camel@localhost.localdomain> <1176203333.26372.31.camel@localhost.localdomain> <1176203475.26372.37.camel@localhost.localdomain> <1176203528.26372.40.camel@localhost.localdomain> <84144f020704100428r6e35e34cued8758c94728a6a0@mail.gmail.com> <84144f020704100436y3405f104x8345c72556d961e9@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <84144f020704100436y3405f104x8345c72556d961e9@mail.gmail.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: virtualization-bounces@lists.linux-foundation.org Errors-To: virtualization-bounces@lists.linux-foundation.org To: Pekka Enberg Cc: Andi Kleen , Andrew Morton , jens.axboe@oracle.com, lkml - Kernel Mailing List , virtualization List-Id: virtualization@lists.linuxfoundation.org On Tue, 2007-04-10 at 14:36 +0300, Pekka Enberg wrote: > On 4/10/07, Rusty Russell wrote: > > > +/* Jens gave me this nice helper to end all chunks of a request. */ > > > +static void end_entire_request(struct request *req, int uptodate) > > > +{ > > > + if (end_that_request_first(req, uptodate, req->hard_nr_sector= s)) > > > + BUG(); > > > + add_disk_randomness(req->rq_disk); > > > + blkdev_dequeue_request(req); > > > + end_that_request_last(req, uptodate); > > > +} > = > On 4/10/07, Pekka Enberg wrote: > > Perhaps we should move this to generic code (i.e. block/ll_rw_blk.c)? Yeah, Jens said to put it in here and he'd hoist it later. > Uhm, I am bit confused now. Why don't you just use end_request() here? What a question! end_request() doesn't end a request! What a crazy idea! As far as I can tell, every name in the block layer is actually some variant of "fuck off, this is too complicated for you to understand". Hope that clarifies! Rusty.