]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commitc58cc70fde299866bc261296166d26a87b4fa7ef
tree380733a0f9e6f5b006eaa97809983f8837a202cc
parent1c356ec5e932c8d4c83d9782ab3c4164b6471d5d
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