From: Murthy Bhat Date: Thu, 22 Aug 2019 20:39:44 +0000 (-0500) Subject: scsi: smartpqi: correct REGNEWD return status X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=9946a3987248353c32c94f3b5b13070aee0a1a6b;p=openwrt%2Fstaging%2Fblogic.git scsi: smartpqi: correct REGNEWD return status Return -EINPROGRESS when a rescan worker is queued. Reviewed-by: Scott Benesh Reviewed-by: Kevin Barnett Signed-off-by: Murthy Bhat Signed-off-by: Don Brace Signed-off-by: Martin K. Petersen --- 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)