]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: storvsc: Avoid excessive host scan on controller change
authorLong Li <longli@microsoft.com>
Tue, 31 Oct 2017 21:58:08 +0000 (14:58 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 7 Nov 2017 03:38:29 +0000 (22:38 -0500)
commit6dab2261f159a8c6224080c37fdbd07e3b3c63f9
tree380733a0f9e6f5b006eaa97809983f8837a202cc
parent63c7086d1bbf6e7c4ad1231abb07724985dc814f
scsi: storvsc: Avoid excessive host scan on controller change

When there are multiple disks attached to the same SCSI controller, the
host may send several VSTOR_OPERATION_REMOVE_DEVICE or
VSTOR_OPERATION_ENUMERATE_BUS messages in a row, to indicate there is a
change on the SCSI controller. In response, storvsc rescans the SCSI
host.

There is no need to do multiple scans on the same host. Fix the code to
do only one scan.

[mkp: applied by hand]

Signed-off-by: Long Li <longli@microsoft.com>
Tested-by: Cathy Avery <cavery@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/storvsc_drv.c