device handler interface update
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest5 patches 8 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | scsi: rescan VPD attributesdrivers/ drivers/ drivers/ +3 more | +39 | 4 replies | |
| 2/5 | scsi_dh: add 'rescan' callbackdrivers/ drivers/ drivers/ +1 more | +51 | 0 replies | |
| 3/5 | scsi: Add 'access_state' attributedrivers/ include/ include/ | +67 | 2 replies | |
| 4/5 | scsi_dh_alua: add 'state' callback functiondrivers/ | +47 | 2 replies | |
| 5/5 | scsi_dh_rdac: Add 'state' callbackdrivers/ | +17 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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