mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 18:39:59 +00:00
scsi: smartpqi: correct REGNEWD return status
Return -EINPROGRESS when a rescan worker is queued. Reviewed-by: Scott Benesh <scott.benesh@microsemi.com> Reviewed-by: Kevin Barnett <kevin.barnett@microsemi.com> Signed-off-by: Murthy Bhat <Murthy.Bhat@microsemi.com> Signed-off-by: Don Brace <don.brace@microsemi.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
71ecc60d9b
commit
9946a39872
1 changed files with 1 additions and 1 deletions
|
@ -2243,7 +2243,7 @@ static int pqi_scan_scsi_devices(struct pqi_ctrl_info *ctrl_info)
|
|||
|
||||
if (!mutex_trylock(&ctrl_info->scan_mutex)) {
|
||||
pqi_schedule_rescan_worker_delayed(ctrl_info);
|
||||
|
||||
rc = -EINPROGRESS;
|
||||
} else {
|
||||
rc = pqi_update_scsi_devices(ctrl_info);
|
||||
if (rc)
|
||||
|
|
Loading…
Reference in a new issue