Skip to content

REAC CAPACITY fixes

Hannes Reinecke linux-scsi 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3sd: Fixup capacity for ALUA standby or transitioning portsdrivers/scsi/sd.c+22 -00 replies
2/3scsi: rescan device if an invalid capacity had been reporteddrivers/scsi/scsi_lib.c drivers/scsi/sd.c include/scsi/scsi_device.h+19 -51 reply
3/3sd: do not try to spin-up disks for ALUA 'transitioning' statedrivers/scsi/sd.c+2 -02 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/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