[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080304192551.GU6704@kernel.dk>
Date: Tue, 4 Mar 2008 20:25:51 +0100
From: Jens Axboe <jens.axboe@...cle.com>
To: Mike Galbraith <efault@....de>
Cc: Tejun Heo <htejun@...il.com>, FUJITA Tomonori <tomof@....org>,
fujita.tomonori@....ntt.co.jp,
James.Bottomley@...senPartnership.com, akpm@...ux-foundation.org,
linux-kernel@...r.kernel.org, linux-ide@...r.kernel.org,
linux-scsi@...r.kernel.org, jgarzik@...ox.com, bzolnier@...il.com
Subject: Re: [PATCH] block: fix residual byte count handling
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists