Skip to content

tcm_loop updates

Hannes Reinecke linux-scsi 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 15 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8tcm_loop: Hook into SAS transport classdrivers/target/loopback/tcm_loop.c+15 -10 replies
2/8tcm_loop: Add SAS transport topologydrivers/target/loopback/tcm_loop.c drivers/target/loopback/tcm_loop.h+125 -170 replies
3/8tcm_loop: Remove SAS vestigiesdrivers/target/loopback/tcm_loop.c+9 -80 replies
4/8tcm_loop: Send I_T_NEXUS_LOSS_OCCURRED UAdrivers/target/loopback/tcm_loop.c drivers/target/target_core_tpg.c include/target/target_core_fabric.h+23 -00 replies
5/8tcm_loop: Rescan SCSI target on transport onlinedrivers/target/loopback/tcm_loop.c+9 -00 replies
6/8target: Issue Power-On/Reset UA upon LUN instantiationdrivers/target/target_core_device.c+10 -60 replies
7/8target_core_alua: disallow READ_CAPACITY when in standbydrivers/target/target_core_alua.c+0 -94 replies
8/8target: display 'write_protect' attribute for demo-mode LUNsdrivers/target/target_core_device.c drivers/target/target_core_fabric_configfs.c drivers/target/target_core_internal.h+70 -02 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/8] tcm_loop updates

Hi Nic,

As tcm_loop claims to be a SAS HBA I thought it a good idea to hook it into the SAS transport class, so that we have the entire (virtual) SAS topology in sysfs now.
And even lsscsi is happy:

# lsscsi -H -t
[10]    tcm_loopback  sas:0x6001405cc9332c5a
# lsscsi -t
[10:0:0:0]   disk    sas:0x6001405e41925ad3          /dev/sdf 
[10:0:1:0]   disk    sas:0x6001405e41925ad3          /dev/sdg 

I've also included some pending fixes / updates I did for LIO target, mostly done to reproduce issues I've been facing:
- Disallow READ CAPACITY in standby
This is a long-standing issue with the linux SCSI stack and multipathing, both assuming that READ CAPACITY will always succeed. With that patch we can finally debug and fix this.
- Export the 'write_protect' attribute for demo-mode LUNs
- Some more UAs to be issued

As usual, reviews and comments are welcome.

Hannes Reinecke (8):
tcm_loop: Hook into SAS transport class
tcm_loop: Add SAS transport topology
tcm_loop: Remove SAS vestigies
tcm_loop: Send I_T_NEXUS_LOSS_OCCURRED UA
tcm_loop: Rescan SCSI target on transport online
target: Issue Power-On/Reset UA upon LUN instantiation
target_core_alua: disallow READ_CAPACITY when in standby
target: display 'write_protect' attribute for demo-mode LUNs

 drivers/target/loopback/tcm_loop.c           | 186 +++++++++++++++++++++++----
 drivers/target/loopback/tcm_loop.h           |   3 +
 drivers/target/target_core_alua.c            |   9 --
 drivers/target/target_core_device.c          |  43 ++++++-
 drivers/target/target_core_fabric_configfs.c |  42 ++++++
 drivers/target/target_core_internal.h        |   1 +
 drivers/target/target_core_tpg.c             |  17 +++
 include/target/target_core_fabric.h          |   1 +
 8 files changed, 261 insertions(+), 41 deletions(-)
Signature · 1 line
1.8.5.2