[stgt] [PATCH V1 00/13] transfer len and resid count handling fixes

FUJITA Tomonori fujita.tomonori at lab.ntt.co.jp
Sun Feb 17 03:07:12 CET 2013


On Tue, 12 Feb 2013 16:49:15 +0200
nezhinsky at gmail.com wrote:

> From: Alexander Nezhinsky <nezhinsky at gmail.com>
> 
> Sorry for resending this twice, previous send was only partial ....
> This time all patches and the cover letter.
> 
> These patches fix data-in buffer generation for SPC and SPC-like commands,
> correctly accounting for allocation length, introduce explicit transfer length
> reporting by SCSI layer, fix and unify residual count caclulation for
> over/underflow conditions by iscsi and iser LLDs.
> 
> This allows interoperability with VmWare ESX initiator both for iser
> and iscsi.
> 
> For an extensive comment please see patch:
> "transfer_len for scsi_cmd, set together with resid..."
> 
> Alexander Nezhinsky (13):
>   transfer_len for scsi_cmd, set together with resid; unified resid
>     handling for iscsi/iser
>   spc_memcpy: safe memcpy for SPC-type cmds tracking remaining space
>   spc: fix data-in buffer generation for INQUIRY cmd
>   spc: fix data-in buffer generation for REPORT_LUNS cmd
>   spc: fix data-in buffer generation for
>     REPORT_SUPPORTED_OPERATION_CODES cmd
>   spc: fix data-in buffer generation for MOD_SENSE cmd
>   spc: fix data-in buffer generation for READ_KEYS action of
>     PERSISTENT_RESERVE_IN
>   spc: fix data-in buffer generation for READ_RESERVATION of
>     PERSISTENT_RESERVE_IN
>   spc: fix data-in buffer generation for REPORT_CAPABILITIES of
>     PERSISTENT_RESERVE_IN
>   spc: fix data-in buffer generation for REQUEST_SENSE cmd
>   sbc: fix data-in buffer generation for READ_CAPACITY(16)
>   sbc: fix data-in buffer generation for GET_LBA_STATUS
>   bs_sg: fix residual count handling for sg and bsg, account for
>     direction
> 
>  usr/bs_sg.c        |   30 +++--
>  usr/iscsi/iscsid.c |   91 ++++++++-------
>  usr/iscsi/iscsid.h |    1 +
>  usr/iscsi/iser.c   |   46 +-------
>  usr/sbc.c          |  112 ++++++++++---------
>  usr/scsi_cmnd.h    |   39 +++++--
>  usr/spc.c          |  316 +++++++++++++++++++++++++++-------------------------
>  usr/target.c       |    7 ++
>  usr/util.c         |   18 +++
>  usr/util.h         |    2 +
>  10 files changed, 349 insertions(+), 313 deletions(-)

Applied, thanks!
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



More information about the stgt mailing list