]> 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)
commit5078adfd418046f0f2f569d412ecb8ac41d02598
tree380733a0f9e6f5b006eaa97809983f8837a202cc
parentf7c5ef610188887b2fc97f0c62c5873239c9151a
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