aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/libfc/fc_lport.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/libfc/fc_lport.c b/drivers/scsi/libfc/fc_lport.c
index a6ab692f5f5..e6ea4f11953 100644
--- a/drivers/scsi/libfc/fc_lport.c
+++ b/drivers/scsi/libfc/fc_lport.c
@@ -619,6 +619,7 @@ int fc_fabric_logoff(struct fc_lport *lport)
619 mutex_lock(&lport->lp_mutex); 619 mutex_lock(&lport->lp_mutex);
620 fc_lport_enter_logo(lport); 620 fc_lport_enter_logo(lport);
621 mutex_unlock(&lport->lp_mutex); 621 mutex_unlock(&lport->lp_mutex);
622 cancel_delayed_work_sync(&lport->retry_work);
622 return 0; 623 return 0;
623} 624}
624EXPORT_SYMBOL(fc_fabric_logoff); 625EXPORT_SYMBOL(fc_fabric_logoff);
@@ -918,6 +919,7 @@ static void fc_lport_recv_req(struct fc_lport *lport, struct fc_seq *sp,
918 */ 919 */
919int fc_lport_reset(struct fc_lport *lport) 920int fc_lport_reset(struct fc_lport *lport)
920{ 921{
922 cancel_delayed_work_sync(&lport->retry_work);
921 mutex_lock(&lport->lp_mutex); 923 mutex_lock(&lport->lp_mutex);
922 fc_lport_enter_reset(lport); 924 fc_lport_enter_reset(lport);
923 mutex_unlock(&lport->lp_mutex); 925 mutex_unlock(&lport->lp_mutex);