summaryrefslogtreecommitdiffstats
path: root/include/scsi/scsi_device.h
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2016-03-03 07:54:07 +0100
committerMartin K. Petersen <martin.petersen@oracle.com>2016-03-05 17:14:37 -0500
commit77c9df9644d7c35516770a21cb56b413e8547d8f (patch)
treebb7303df95797e5b6d2b3a6961b079a6725c24e6 /include/scsi/scsi_device.h
parent7e47976bcff23cbe011635e8931855cd3fb3aa6f (diff)
downloadlinux-stable-77c9df9644d7c35516770a21cb56b413e8547d8f.tar.gz
linux-stable-77c9df9644d7c35516770a21cb56b413e8547d8f.tar.bz2
linux-stable-77c9df9644d7c35516770a21cb56b413e8547d8f.zip
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>
Diffstat (limited to 'include/scsi/scsi_device.h')
-rw-r--r--include/scsi/scsi_device.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/scsi/scsi_device.h b/include/scsi/scsi_device.h
index 4af2b240c4d1..c067019ed12a 100644
--- a/include/scsi/scsi_device.h
+++ b/include/scsi/scsi_device.h
@@ -201,6 +201,7 @@ struct scsi_device {
struct scsi_device_handler *handler;
void *handler_data;
+ unsigned char access_state;
enum scsi_device_state sdev_state;
unsigned long sdev_data[0];
} __attribute__((aligned(sizeof(unsigned long))));