Skip to content

: Add support for strict iSCSI TransportID ISID processing

Nicholas A. Bellinger linux-scsi 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4: Add proper support for ISIDs in TransportID processingdrivers/target/target_core_configfs.c drivers/target/target_core_pr.c include/target/target_core_base.h +2 more+266 -640 replies
2/4: Replace usage of DEF_PR_REGISTERED with *core_scsi3_locate_pr_reg()drivers/target/target_core_pr.c+14 -300 replies
3/4: Update APTPL metadata logic for ISIDs in TransportID processingdrivers/target/target_core_configfs.c drivers/target/target_core_pr.c include/target/target_core_pr.h+57 -130 replies
4/4: Add per-device attribute 'enforce_pr_isids'drivers/target/target_core_configfs.c drivers/target/target_core_device.c include/target/target_core_device.h +1 more+19 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] [TCM/PR]: Add support for strict iSCSI TransportID ISID processing

From: Nicholas Bellinger <[email protected]>

Greetings SCSI folks,

This is a set of patches to lio-core-2.6.git/master to add proper support for strict iSCSI TransportID ISID processing within core TCM/PR fabric independent logic.

This allows TCM to properly handle the scenario for SPC-3 PR and legacy SPC-2 reservations where there is a single iSCSI InitiatorName with multiple ISIDs (TransportIDs with the same InitiatorName) connecting to a single TCM/LIO target endpoint (TargetName+TargetPortalGroupTag) Beyond this one case, this patch also does change the default operation of TCM/PR for all scenarios to require the use of InitiatorName+ISID TransportIDs for PR opreation for fabrics (like iSCSI) having 'multi-value' TransportIDs containing an ISID.

There is also a patch to add a device attribute 'enforce_pr_isids' to allow matching for PR registration created via TransportID with SPEC_I_PT=1 or REGISTER_AND_MOVE not containing a ISID, but for fabric destination employing them (iSCSI again). Note that the changes have been tested using iSCSI and Virtual SAS ports with REGISTER + SPEC_I_PT=1, APTPL=1 and REGISTER_AND_MOVE between LIO-Target and TCM_Loop fabric modules.

It would be great if any folks fimilar discussion would mind to have a look at the code!

Best,

Nicholas Bellinger (4):
[TCM/PR]: Add proper support for ISIDs in TransportID processing [TCM/PR]: Replace usage of DEF_PR_REGISTERED with

    *core_scsi3_locate_pr_reg()

[TCM/PR]: Update APTPL metadata logic for ISIDs in TransportID
processing
[TCM/ConfigFS]: Add per-device attribute 'enforce_pr_isids'

 drivers/target/target_core_configfs.c  |   44 +++-
 drivers/target/target_core_device.c    |   12 +
 drivers/target/target_core_pr.c        |  393 ++++++++++++++++++++++++--------
 include/target/target_core_base.h      |    4 +
 include/target/target_core_device.h    |    1 +
 include/target/target_core_pr.h        |    6 +-
 include/target/target_core_transport.h |    3 +
 7 files changed, 356 insertions(+), 107 deletions(-)