]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit88feba8fa0456ffa71095bf3bf9ddb2413cd230c
treeb56671c09ac4a23a777cc2ed7b28e9856c2c5cd9
parent79000437b29b75181a871cac4df747390005a5c8
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