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

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

 



From: Alexander Nezhinsky <nezhinsky@xxxxxxxxx>

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(-)

-- 
1.7.9.6

--
To unsubscribe from this list: send the line "unsubscribe stgt" 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]     [Linux RAID]     [Linux Clusters]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]

  Powered by Linux