scsi_dh_alua: update 'access_state' field
authorHannes Reinecke <hare@suse.de>
Thu, 3 Mar 2016 06:54:09 +0000 (07:54 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 5 Mar 2016 22:17:34 +0000 (17:17 -0500)
commitcb0a168cb6b8f77097d69872349278a17383c38e
tree8767a3cdad4c95b8737fd98f712d181eb5e5edd4
parent5115fc7e2e6be8e082a9ff996cb9f343b0e850fe
scsi_dh_alua: update 'access_state' field

Track attached SCSI devices and update the 'access_state' field whenever
an ALUA state change has been detected.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Bart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: Ewan Milne <emilne@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/device_handler/scsi_dh_alua.c