]> 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)
commit9e7680cc4ef43ef69aacb4829e9c96bdbdbb610c
treeb56671c09ac4a23a777cc2ed7b28e9856c2c5cd9
parent5f9678950a95bf0938edcc7da946a0ca4db9b60f
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