From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tejun Heo Subject: Re: [PATCH block#for-2.6.31 1/3] ub: use __blk_end_request_all() Date: Sat, 16 May 2009 07:19:48 +0900 Message-ID: <4A0DEA84.6010909@kernel.org> References: <4A0D86DB.9000203@kernel.org> <20090515113114.68ae93ae.zaitcev@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from hera.kernel.org ([140.211.167.34]:55467 "EHLO hera.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753715AbZEOWUQ (ORCPT ); Fri, 15 May 2009 18:20:16 -0400 In-Reply-To: <20090515113114.68ae93ae.zaitcev@redhat.com> Sender: linux-ide-owner@vger.kernel.org List-Id: linux-ide@vger.kernel.org To: Pete Zaitcev Cc: Jens Axboe , James Bottomley , Boaz Harrosh , Linux Kernel , linux-scsi , IDE/ATA development list , Bartlomiej Zolnierkiewicz , Borislav Petkov Pete Zaitcev wrote: > On Sat, 16 May 2009 00:14:35 +0900, Tejun Heo wrote: > >> @@ -834,12 +829,7 @@ static void ub_end_rq(struct request *rq >> error = -EIO; >> rq->errors = scsi_status; >> } >> - rqlen = blk_rq_bytes(rq); /* Oddly enough, this is the residue. */ >> - if (__blk_end_request(rq, error, cmd_len)) { >> - printk(KERN_WARNING DRV_NAME >> - ": __blk_end_request blew, %s-cmd total %u rqlen %ld\n", >> - blk_pc_request(rq)? "pc": "fs", cmd_len, rqlen); >> - } >> + __blk_end_request_all(rq, error); >> } > > I applaud this. We needed blk_end_this_mudafakin_request() for a long time. > Why two underscores? The ones with two underscores are to be called with queue lock held. Ones without grab queue lock themselves. Thanks. -- tejun