[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4A093D1D.5060408@gmail.com>
Date: Tue, 12 May 2009 18:10:53 +0900
From: Tejun Heo <htejun@...il.com>
To: Boaz Harrosh <bharrosh@...asas.com>
CC: axboe@...nel.dk, linux-kernel@...r.kernel.org, jeff@...zik.org,
linux-ide@...r.kernel.org, James.Bottomley@...senPartnership.com,
linux-scsi@...r.kernel.org, bzolnier@...il.com,
petkovbb@...glemail.com, sshtylyov@...mvista.com,
mike.miller@...com, Eric.Moore@....com, stern@...land.harvard.edu,
fujita.tomonori@....ntt.co.jp, zaitcev@...hat.com,
Geert.Uytterhoeven@...ycom.com, sfr@...b.auug.org.au,
grant.likely@...retlab.ca, paul.clements@...eleye.com,
tim@...erelk.net, jeremy@...source.com, adrian@...en.demon.co.uk,
oakad@...oo.com, dwmw2@...radead.org, schwidefsky@...ibm.com,
ballabio_dario@....com, davem@...emloft.net, rusty@...tcorp.com.au,
Markus.Lidel@...dowconnect.com,
Doug Gilbert <dgilbert@...erlog.com>,
"Darrick J. Wong" <djwong@...ibm.com>
Subject: Re: [PATCH 03/11] block: add rq->resid_len
Tejun Heo wrote:
...
> Please consider write failing after successfully writing certain
> number of bytes. A failed write command MUST NOT cause any actual
> write on the device.
>
> Residual count is not about how many bytes have been transferred. The
> number of transferred bytes itself doesn't mean a thing because it
> changes depending on which transfer protocol is used regardless of
> where the actual failure is. Residual count is about how many bytes
> have been actually produced or consumed and when a command fails none
> should have been.
Please note that in the above 'command' and 'residual count' are not
as defined in SCSI. Those terms refer to how those concepts are used
in the kernel and via SG_IO interface.
Thanks.
--
tejun
--
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