Skip to content

target: Update UA handling

Hannes Reinecke linux-scsi 1 version Applied

Status from this message: Applied to target-pending/for-next, with the extra incremental patch for

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 15 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/6target_core_alua: Correct UA handling when switching statesdrivers/target/target_core_alua.c+16 -60 replies
2/6target: Remove 'ua_nacl' pointer from se_ua structuredrivers/target/target_core_ua.c include/target/target_core_base.h+0 -20 replies
3/6target: use 'se_dev_entry' when allocating UAsdrivers/target/target_core_alua.c drivers/target/target_core_pr.c drivers/target/target_core_transport.c +2 more+59 -422 replies
4/6target: Send UA on ALUA target port group changedrivers/target/target_core_alua.c drivers/target/target_core_ua.h+9 -04 replies
5/6target: Send UA upon LUN RESET tmr completiondrivers/target/target_core_transport.c+11 -03 replies
6/6target: Send UA when changing LUN inventorydrivers/target/target_core_device.c drivers/target/target_core_ua.h+26 -13 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/6] target: Update UA handling

Hi Nic,

lio-target is very minimalistic when it comes to generate UAs; primarily they are generated for persistent reservations, but generic changes tend to be ignored.

This patchset updates the UA handling and generates UA for internal state changes (REPORTED LUNS DATA CHANGED, INQUIRY DATA CHANGED, and LUN RESET OCCURRED).

Funnily enough this triggers some issues with the SCSI stack; I'll be sending out patches for that, too.

Hannes Reinecke (6):
target_core_alua: Correct UA handling when switching states
target: Remove 'ua_nacl' pointer from se_ua structure
target: use 'se_dev_entry' when allocating UAs
target: Send UA on ALUA target port group change
target: Send UA upon LUN RESET tmr completion
target: Send UA when changing LUN inventory

 drivers/target/target_core_alua.c      | 56 +++++++++++++++++++++++++---------
 drivers/target/target_core_device.c    | 26 +++++++++++++++-
 drivers/target/target_core_pr.c        | 31 +++++++++++++++----
 drivers/target/target_core_transport.c | 29 ++++++++++++++----
 drivers/target/target_core_ua.c        | 24 ++-------------
 drivers/target/target_core_ua.h        |  5 ++-
 include/target/target_core_base.h      |  1 -
 7 files changed, 121 insertions(+), 51 deletions(-)
Signature · 1 line
1.8.5.2