Skip to content

device handler interface update

Hannes Reinecke linux-scsi 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5scsi: rescan VPD attributesdrivers/scsi/device_handler/scsi_dh_alua.c drivers/scsi/scsi.c drivers/scsi/scsi_scan.c +3 more+39 -114 replies
2/5scsi_dh: add 'rescan' callbackdrivers/scsi/device_handler/scsi_dh_alua.c drivers/scsi/scsi_lib.c drivers/scsi/scsi_scan.c +1 more+51 -120 replies
3/5scsi: Add 'access_state' attributedrivers/scsi/scsi_sysfs.c include/scsi/scsi_device.h include/scsi/scsi_dh.h+67 -02 replies
4/5scsi_dh_alua: add 'state' callback functiondrivers/scsi/device_handler/scsi_dh_alua.c+47 -02 replies
5/5scsi_dh_rdac: Add 'state' callbackdrivers/scsi/device_handler/scsi_dh_rdac.c+17 -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/5] device handler interface update

Hi all,

the current scsi_dh interface is very limited in functionality. In particular it's not possible to update the internal state without triggering a failover, and it not possible to figure out the internal state of the device handler.

This patchset adds the functionality to rescan the device handler if something has changed and adds a new sysfs attribute 'access_state' to display the internal state.

To make this work the first patch implements functionality to rescan the VPD information, as it might have changed, too.

The patchset is relative to my asynchronous ALUA update posted earlier.

The entire tree can be found on git.kernel.org:

kernel/git/hare/scsi-devel.git branch alua.v3

As usual, reviews and comments are welcome.

Hannes Reinecke (5):
scsi: rescan VPD attributes
scsi_dh: add 'rescan' callback
scsi: Add 'access_state' attribute
scsi_dh_alua: add 'state' callback function
scsi_dh_rdac: Add 'state' callback

 drivers/scsi/device_handler/scsi_dh_alua.c | 111 +++++++++++++++++++++++++----
 drivers/scsi/device_handler/scsi_dh_rdac.c |  17 +++++
 drivers/scsi/scsi.c                        |  20 +++++-
 drivers/scsi/scsi_lib.c                    |   1 +
 drivers/scsi/scsi_scan.c                   |  10 +++
 drivers/scsi/scsi_sysfs.c                  |  61 +++++++++++++++-
 drivers/scsi/ses.c                         |   6 +-
 include/scsi/scsi_device.h                 |  14 ++++
 include/scsi/scsi_dh.h                     |   2 +
 9 files changed, 220 insertions(+), 22 deletions(-)
Signature · 1 line
1.8.5.2