REAC CAPACITY fixes
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 3 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | sd: Fixup capacity for ALUA standby or transitioning portsdrivers/ | +22 | 0 replies | |
| 2/3 | scsi: rescan device if an invalid capacity had been reporteddrivers/ drivers/ include/ | +19 | 1 reply | |
| 3/3 | sd: do not try to spin-up disks for ALUA 'transitioning' statedrivers/ | +2 | 2 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/3] REAC CAPACITY fixes
Hi all,
here's a small patch series as an attempt to fix up the READ CAPACITY issue on ALUA devices. The problem is that an ALUA device in state 'standby' or 'transitioning' might return the READ CAPACITY command with a sense code, causing the sd driver to report an error in sd_read_capacity.
This patchset fixes up this situation so that these devices will be reported with a capacity of '0', but marked with a flag 'invalid_capacity'. So whenever we get a sense code indicating that the ALUA state has changed or if the 'rescan' attribute was triggered this flag will be reset if the capacity could be successfully read.
Hannes Reinecke (3):
sd: Fixup capacity for ALUA standby or transitioning ports
scsi: rescan device if an invalid capacity had been reported
sd: do not try to spin-up disks for ALUA 'transitioning' state
drivers/scsi/scsi_lib.c | 4 ++++ drivers/scsi/sd.c | 35 ++++++++++++++++++++++++++++++++++- include/scsi/scsi_device.h | 1 + 3 files changed, 39 insertions(+), 1 deletion(-)
Signature · 1 line
1.8.5.2