From: Ewan D. Milne Date: Thu, 4 Dec 2014 16:49:27 +0000 (-0500) Subject: scsi_debug: Add REPORTED LUNS DATA HAS CHANGED Unit Attention X-Git-Tag: fixes-v4.0-rc1~143^2~103 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=19c8ead7252bb66147011a361bb0c74dcb18e213;p=pandora-kernel.git 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 Acked-by: Douglas Gilbert Tested-by: Douglas Gilbert Signed-off-by: Christoph Hellwig --- Reading git-diff-tree failed