|
@@ -619,6 +619,7 @@ int fc_fabric_logoff(struct fc_lport *lport)
|
|
mutex_lock(&lport->lp_mutex);
|
|
mutex_lock(&lport->lp_mutex);
|
|
fc_lport_enter_logo(lport);
|
|
fc_lport_enter_logo(lport);
|
|
mutex_unlock(&lport->lp_mutex);
|
|
mutex_unlock(&lport->lp_mutex);
|
|
|
|
+ cancel_delayed_work_sync(&lport->retry_work);
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
EXPORT_SYMBOL(fc_fabric_logoff);
|
|
EXPORT_SYMBOL(fc_fabric_logoff);
|
|
@@ -918,6 +919,7 @@ static void fc_lport_recv_req(struct fc_lport *lport, struct fc_seq *sp,
|
|
*/
|
|
*/
|
|
int fc_lport_reset(struct fc_lport *lport)
|
|
int fc_lport_reset(struct fc_lport *lport)
|
|
{
|
|
{
|
|
|
|
+ cancel_delayed_work_sync(&lport->retry_work);
|
|
mutex_lock(&lport->lp_mutex);
|
|
mutex_lock(&lport->lp_mutex);
|
|
fc_lport_enter_reset(lport);
|
|
fc_lport_enter_reset(lport);
|
|
mutex_unlock(&lport->lp_mutex);
|
|
mutex_unlock(&lport->lp_mutex);
|