]> git.baikalelectronics.ru Git - kernel.git/commit
scsi_dh_alua: Recheck state on unit attention
authorHannes Reinecke <hare@suse.de>
Fri, 19 Feb 2016 08:17:13 +0000 (09:17 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 24 Feb 2016 02:27:02 +0000 (21:27 -0500)
commit7e070ccd34711dce0f4fe65be1ee5e931d80a1b5
tree9d344925d2a9206f20b5c9d6850418242fa9105f
parent7a651436d7975bea9aa574778631fe573fa5d7b9
scsi_dh_alua: Recheck state on unit attention

When we receive a unit attention code of 'ALUA state changed'
we should recheck the state, as it might be due to an implicit
ALUA state transition. This allows us to return NEEDS_RETRY
instead of ADD_TO_MLQUEUE, allowing to terminate the retries
after a certain time.
At the same time a workqueue item might already be queued, which
should be started immediately to avoid any delays.

Reviewed-by: Bart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
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