scsi: hpsa: limit outstanding rescans
authorDon Brace <don.brace@microsemi.com>
Fri, 10 Mar 2017 20:35:17 +0000 (14:35 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Dec 2017 09:07:22 +0000 (10:07 +0100)
commit0f07e7611184cd78a26dd1fbf13513264896cdac
tree9c16cd18f46fdc0647b8ed929e97e30bf2663e90
parentc81410a4353d45766564ba6af9a067d33d1525d7
scsi: hpsa: limit outstanding rescans

[ Upstream commit 87b9e6aa87d9411f1059aa245c0c79976bc557ac ]

Avoid rescan storms. No need to queue another if one is pending.

Reviewed-by: Scott Benesh <scott.benesh@microsemi.com>
Reviewed-by: Scott Teel <scott.teel@microsemi.com>
Reviewed-by: Tomas Henzl <thenzl@redhat.com>
Signed-off-by: Don Brace <don.brace@microsemi.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/scsi/hpsa.c
drivers/scsi/hpsa.h