diff options
author | Ewan D. Milne <emilne@redhat.com> | 2014-12-04 11:49:27 -0500 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2015-01-09 15:44:20 +0100 |
commit | 19c8ead7252bb66147011a361bb0c74dcb18e213 (patch) | |
tree | 0b82d9cfa615e9c73e0733ca5d2f3fad3db21e33 /drivers/scsi/3w-9xxx.c | |
parent | 08024885a2a3ed432716e9d50046a620a5b2df05 (diff) | |
download | talos-op-linux-19c8ead7252bb66147011a361bb0c74dcb18e213.tar.gz talos-op-linux-19c8ead7252bb66147011a361bb0c74dcb18e213.zip |
scsi_debug: Add REPORTED LUNS DATA HAS CHANGED Unit Attention
Generate a REPORTED LUNS DATA HAS CHANGED Unit Attention if
sysfs "max_luns" is used to change the number of scsi_debug LUNs.
This is only done if scsi_debug_scsi_level is SPC-3 or above.
Additionally, implement SPC-4 behavior which only generates
this Unit Attention on the first LUN on the target to receive
a command after the change. This condition is cleared when
a REPORT LUNS command is received.
Signed-off-by: Ewan D. Milne <emilne@redhat.com>
Acked-by: Douglas Gilbert <dgilbert@interlog.com>
Tested-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/scsi/3w-9xxx.c')
0 files changed, 0 insertions, 0 deletions