]> git.baikalelectronics.ru Git - kernel.git/commit
scsi_debug: add Capacity Changed Unit Attention
authorDouglas Gilbert <dgilbert@interlog.com>
Tue, 25 Nov 2014 01:27:51 +0000 (20:27 -0500)
committerChristoph Hellwig <hch@lst.de>
Tue, 25 Nov 2014 14:42:56 +0000 (15:42 +0100)
commit1f62f2cec05f7e92285db91e16cbe5a7278b89b0
tree6a09abfc3527fee50ec14cfb28c5a3c9daf2ee2b
parentf5fb1ce7fc4e7ddac9bfe0e8744c5307a0638960
scsi_debug: add Capacity Changed Unit Attention

Via sysfs the virtual_gb scsi_debug parameter can be changed while
LUs are in use. If that changes, the 'Capacity data has changed'
Unit Attention is queued on all LUs.

Signed-off-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/scsi_debug.c