Skip to content

SCSI 'access_state' attribute

Hannes Reinecke linux-scsi 2 versions – Applied

Status from this message: Applied to 4.6/scsi-queue.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 9 repliesApplied
  2. v16 patches 9 repliesSuperseded

Changes to v1 from the cover letter

- Use sprintf instead of snprintf
- Call missing scsi_dh_remove() after a failed device_add()

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/6scsi: Add 'access_state' and 'preferred_path' attributedrivers/scsi/scsi_sysfs.c include/scsi/scsi_device.h include/scsi/scsi_proto.h+87 -02 replies
2/6scsi_dh_alua: use common definitions for ALUA statedrivers/scsi/device_handler/scsi_dh_alua.c+25 -331 reply
3/6scsi_dh_alua: update 'access_state' fielddrivers/scsi/device_handler/scsi_dh_alua.c+46 -21 reply
4/6scsi_dh_rdac: update 'access_state' fielddrivers/scsi/device_handler/scsi_dh_rdac.c+31 -71 reply
5/6scsi_dh_emc: update 'access_state' fielddrivers/scsi/device_handler/scsi_dh_emc.c+6 -11 reply
6/6scsi_sysfs: call 'device_add' after attaching device handlerdrivers/scsi/scsi_sysfs.c+8 -72 replies

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by.

PatchChristoph HellwigBart van AsscheEwan MilneJohannes Thumshirn
1/6R-b R-b R-b
2/6R-b R-b R-b
3/6R-b R-b R-b R-b
4/6R-b R-b
5/6R-b R-b
6/6R-b R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v2 thread

Cover letter [PATCHv2 0/6] SCSI 'access_state' attribute

Hi all,

here's the patchset to add an 'access_state' and 'preferred_path' attribute. It will display the access state of a path if a hardware handler is attached.
The access_state is given in terms of SCSI ALUA, and the vendor-specific access state (eg for rdac or alua) are mapped onto the ALUA values.
Additionally the 'is_visible' callback is updated to only display the attributes if they are supported.

Changes to v1:
- Use sprintf instead of snprintf
- Call missing scsi_dh_remove() after a failed device_add()

Hannes Reinecke (6):
scsi: Add 'access_state' and 'preferred_path' attribute
scsi_dh_alua: use common definitions for ALUA state
scsi_dh_alua: update 'access_state' field
scsi_dh_rdac: update 'access_state' field
scsi_dh_emc: update 'access_state' field
scsi_sysfs: call 'device_add' after attaching device handler

 drivers/scsi/device_handler/scsi_dh_alua.c | 106 +++++++++++++++++++----------
 drivers/scsi/device_handler/scsi_dh_emc.c  |   7 +-
 drivers/scsi/device_handler/scsi_dh_rdac.c |  38 +++++++++--
 drivers/scsi/scsi_sysfs.c                  |  89 ++++++++++++++++++++++--
 include/scsi/scsi_device.h                 |   1 +
 include/scsi/scsi_proto.h                  |  12 ++++
 6 files changed, 203 insertions(+), 50 deletions(-)
Signature · 1 line
1.8.5.6