From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tejun Heo Subject: Re: [PATCH block#for-2.6.31 2/3] block: set rq->resid_len to blk_rq_bytes() on issue Date: Sat, 16 May 2009 22:48:29 +0900 Message-ID: <4A0EC42D.2080905@gmail.com> References: <4A0D86DB.9000203@kernel.org> <4A0D87D2.7090806@gmail.com> <4A0D8C73.50208@ru.mvista.com> <4A0DEA33.5050905@gmail.com> <4A0EB1AD.6050806@ru.mvista.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4A0EB1AD.6050806@ru.mvista.com> Sender: linux-scsi-owner@vger.kernel.org To: Sergei Shtylyov Cc: Jens Axboe , James Bottomley , Boaz Harrosh , Linux Kernel , linux-scsi , IDE/ATA development list , Bartlomiej Zolnierkiewicz , Borislav Petkov , Pete Zaitcev , Eric Moore , "Darrick J. Wong" List-Id: linux-ide@vger.kernel.org Hello, Sergei. Sergei Shtylyov wrote: >> Heh... there's a reason I mentioned the original commit. The original >> code was >> >> if (ret > 0) { >> /* positive number is the untransferred residual */ >> rsp->data_len = ret; >> req->data_len = 0; >> ret = 0; >> } else if (ret == 0) { >> rsp->data_len = 0; >> req->data_len = 0; >> } >> > > But still, > > req->data_len = 0; > > is common between both branches, so could be moved after the *if* > statement. Yeah, sure, feel free to submit a patch, but I don't know. Does it even matter at all as long as the intention is clear? Thanks. -- tejun