scsi: scsi_dh_alua: handle RTPG sense code correctly during state transitions
authorHannes Reinecke <hare@suse.com>
Mon, 7 Oct 2019 13:57:01 +0000 (15:57 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 10 Nov 2019 10:27:20 +0000 (11:27 +0100)
commitcf372c60ed1300b81d05d618ac3aecec89f4481e
treefaa5afa27e7ad08d57e75a37bc39317ff68857ff
parent3ee6a8bdae81a09c1dc9c27d3a50e6b1b6a24676
scsi: scsi_dh_alua: handle RTPG sense code correctly during state transitions

[ Upstream commit b6ce6fb121a655aefe41dccc077141c102145a37 ]

Some arrays are not capable of returning RTPG data during state
transitioning, but rather return an 'LUN not accessible, asymmetric access
state transition' sense code. In these cases we can set the state to
'transitioning' directly and don't need to evaluate the RTPG data (which we
won't have anyway).

Link: https://lore.kernel.org/r/20191007135701.32389-1-hare@suse.de
Reviewed-by: Laurence Oberman <loberman@redhat.com>
Reviewed-by: Ewan D. Milne <emilne@redhat.com>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/scsi/device_handler/scsi_dh_alua.c