Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1765817AbYCDT0T (ORCPT ); Tue, 4 Mar 2008 14:26:19 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756336AbYCDTZ5 (ORCPT ); Tue, 4 Mar 2008 14:25:57 -0500 Received: from brick.kernel.dk ([87.55.233.238]:8213 "EHLO kernel.dk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754228AbYCDTZ4 (ORCPT ); Tue, 4 Mar 2008 14:25:56 -0500 Date: Tue, 4 Mar 2008 20:25:51 +0100 From: Jens Axboe To: Mike Galbraith Cc: Tejun Heo , FUJITA Tomonori , fujita.tomonori@lab.ntt.co.jp, James.Bottomley@HansenPartnership.com, akpm@linux-foundation.org, linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org, linux-scsi@vger.kernel.org, jgarzik@pobox.com, bzolnier@gmail.com Subject: Re: [PATCH] block: fix residual byte count handling Message-ID: <20080304192551.GU6704@kernel.dk> References: <20080304093536.GH6704@kernel.dk> <1204634238.5997.5.camel@homer.simson.net> <47CD4355.4050401@gmail.com> <20080304223006A.tomof@acm.org> <47CD53BA.5040908@gmail.com> <47CD7611.2030606@gmail.com> <47CD7C05.1080707@gmail.com> <1204656328.6598.1.camel@homer.simson.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1204656328.6598.1.camel@homer.simson.net> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1059 Lines: 35 On Tue, Mar 04 2008, Mike Galbraith wrote: > > On Wed, 2008-03-05 at 01:42 +0900, Tejun Heo wrote: > > > The following patch gets the writing going. > > Bingo. Pretty please test this on top of current -git? I'll merge this up, it should do the trick. Would just be nice if you could verify! :-) diff --git a/drivers/scsi/scsi.c b/drivers/scsi/scsi.c index fecba05..e5c6f6a 100644 --- a/drivers/scsi/scsi.c +++ b/drivers/scsi/scsi.c @@ -757,7 +757,7 @@ void scsi_finish_command(struct scsi_cmnd *cmd) "Notifying upper driver of completion " "(result %x)\n", cmd->result)); - good_bytes = scsi_bufflen(cmd); + good_bytes = scsi_bufflen(cmd) + cmd->request->extra_len; if (cmd->request->cmd_type != REQ_TYPE_BLOCK_PC) { drv = scsi_cmd_to_driver(cmd); if (drv->done) -- Jens Axboe -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/