aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/scsi/lpfc/lpfc_sli.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/scsi/lpfc/lpfc_sli.c b/drivers/scsi/lpfc/lpfc_sli.c
index cb4ccbba0652..1f876328b44b 100644
--- a/drivers/scsi/lpfc/lpfc_sli.c
+++ b/drivers/scsi/lpfc/lpfc_sli.c
@@ -2867,11 +2867,10 @@ lpfc_sli_issue_mbox_wait(struct lpfc_hba * phba, LPFC_MBOXQ_t * pmboxq,
2867 pmboxq->context1 = NULL; 2867 pmboxq->context1 = NULL;
2868 /* if schedule_timeout returns 0, we timed out and were not 2868 /* if schedule_timeout returns 0, we timed out and were not
2869 woken up */ 2869 woken up */
2870 if (timeleft == 0) { 2870 if ((timeleft == 0) || signal_pending(current))
2871 retval = MBX_TIMEOUT; 2871 retval = MBX_TIMEOUT;
2872 } else { 2872 else
2873 retval = MBX_SUCCESS; 2873 retval = MBX_SUCCESS;
2874 }
2875 } 2874 }
2876 2875
2877 2876