]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: hpsa: update discovery polling
authorBader Ali Saleh <bader.alisaleh@microsemi.com>
Fri, 20 Oct 2017 21:51:32 +0000 (16:51 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 25 Oct 2017 08:55:18 +0000 (04:55 -0400)
commitaa428d6ef8e1839b99e8f508863a1d821f339382
treeaf71cfb020f8099f5d1a3f1c4faa8a0540b04c69
parent49f99271f515b609927cb0c1bdbb2b80db7150c7
scsi: hpsa: update discovery polling

Correct a corner case where newly created volumes are not detected
automatically on an external RAID controller that has no configured
volumes during initial device discovery.

The fix is to set the discovery_polling flag when an external RAID
controller is detected. This causes a device rescan every 20-30 seconds,
so that newly created volumes will be detected automatically.

Reviewed-by: Scott Benesh <scott.benesh@microsemi.com>
Reviewed-by: Scott Teel <scott.teel@microsemi.com>
Reviewed-by: Kevin Barnett <kevin.barnett@microsemi.com>
Signed-off-by: Don Brace <don.brace@microsemi.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hpsa.c
drivers/scsi/hpsa_cmd.h