scsi: Add 'access_state' and 'preferred_path' attribute
authorHannes Reinecke <hare@suse.de>
Thu, 3 Mar 2016 06:54:07 +0000 (07:54 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 5 Mar 2016 22:14:37 +0000 (17:14 -0500)
commit77c9df9644d7c35516770a21cb56b413e8547d8f
treebb7303df95797e5b6d2b3a6961b079a6725c24e6
parent7e47976bcff23cbe011635e8931855cd3fb3aa6f
scsi: Add 'access_state' and 'preferred_path' attribute

Add an 'access_state' field to struct scsi_device and display them in
sysfs as 'access_state' and 'preferred_path' attribute.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Bart van Assche <bart.vanassche@sandisk.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_sysfs.c
include/scsi/scsi_device.h
include/scsi/scsi_proto.h