Re: [PATCH 1/3] target: Don't return an error status for 0-length READ and WRITE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2011-11-22 at 13:51 -0800, Roland Dreier wrote:
> From: Roland Dreier <roland@xxxxxxxxxxxxxxx>
> 
> IO commands with a TRANSFER LENGTH of 0 are not an error; for example,
> for READ (10) and WRITE (10), SBC-3 says:
> 
>     A TRANSFER LENGTH field set to zero specifies that no logical blocks
>     shall be read. This condition shall not be considered an error.
> 
> In case we have nothing to do, just complete the command with good status.
> 
> Signed-off-by: Roland Dreier <roland@xxxxxxxxxxxxxxx>
> ---
>  drivers/target/target_core_transport.c |    9 ++++++++-
>  1 files changed, 8 insertions(+), 1 deletions(-)
> 

Applied.

--nab

--
To unsubscribe from this list: send the line "unsubscribe target-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux SCSI]     [Kernel Newbies]     [Linux SCSI Target Infrastructure]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Device Mapper]

  Powered by Linux