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)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 10 Oct 2019 03:29:20 +0000 (23:29 -0400)
commitb6ce6fb121a655aefe41dccc077141c102145a37
treeb56671c09ac4a23a777cc2ed7b28e9856c2c5cd9
parent35a79a63517981a8aea395497c548776347deda8
scsi: scsi_dh_alua: handle RTPG sense code correctly during state transitions

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>
drivers/scsi/device_handler/scsi_dh_alua.c