Commit 9946a398 authored by Murthy Bhat's avatar Murthy Bhat Committed by Martin K. Petersen

scsi: smartpqi: correct REGNEWD return status

Return -EINPROGRESS when a rescan worker is queued.
Reviewed-by: default avatarScott Benesh <scott.benesh@microsemi.com>
Reviewed-by: default avatarKevin Barnett <kevin.barnett@microsemi.com>
Signed-off-by: default avatarMurthy Bhat <Murthy.Bhat@microsemi.com>
Signed-off-by: default avatarDon Brace <don.brace@microsemi.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 71ecc60d
...@@ -2243,7 +2243,7 @@ static int pqi_scan_scsi_devices(struct pqi_ctrl_info *ctrl_info) ...@@ -2243,7 +2243,7 @@ static int pqi_scan_scsi_devices(struct pqi_ctrl_info *ctrl_info)
if (!mutex_trylock(&ctrl_info->scan_mutex)) { if (!mutex_trylock(&ctrl_info->scan_mutex)) {
pqi_schedule_rescan_worker_delayed(ctrl_info); pqi_schedule_rescan_worker_delayed(ctrl_info);
rc = -EINPROGRESS;
} else { } else {
rc = pqi_update_scsi_devices(ctrl_info); rc = pqi_update_scsi_devices(ctrl_info);
if (rc) if (rc)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment