summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/smartpqi
diff options
context:
space:
mode:
authorMurthy Bhat <Murthy.Bhat@microsemi.com>2019-08-22 15:39:44 -0500
committerMartin K. Petersen <martin.petersen@oracle.com>2019-08-29 18:31:39 -0400
commit9946a3987248353c32c94f3b5b13070aee0a1a6b (patch)
treee4d3b22835c3b12e23ac6b86d2b5c5fabbdc1f61 /drivers/scsi/smartpqi
parent71ecc60d9ba47ee5af5a1d0f33cc92755995fb78 (diff)
downloadlinux-9946a3987248353c32c94f3b5b13070aee0a1a6b.tar.bz2
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>
Diffstat (limited to 'drivers/scsi/smartpqi')
-rw-r--r--drivers/scsi/smartpqi/smartpqi_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/smartpqi/smartpqi_init.c b/drivers/scsi/smartpqi/smartpqi_init.c
index 159e9cfc2996..61371ea35bb3 100644
--- a/drivers/scsi/smartpqi/smartpqi_init.c
+++ b/drivers/scsi/smartpqi/smartpqi_init.c
@@ -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)