mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-19 13:46:25 +00:00
ib_srpt: Make sure that rmmod finishes
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3858 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -2154,6 +2154,7 @@ static bool __srpt_close_ch(struct srpt_rdma_ch *ch)
|
||||
/* fall through */
|
||||
case CH_LIVE:
|
||||
was_live = true;
|
||||
wake_up_process(&ch->thread);
|
||||
if (ib_send_cm_dreq(ch->cm_id, NULL, 0) < 0)
|
||||
PRINT_ERROR("sending CM DREQ failed.");
|
||||
break;
|
||||
@@ -3404,6 +3405,7 @@ static int srpt_release_sdev(struct srpt_device *sdev)
|
||||
ch->sess_name,
|
||||
ch->state,
|
||||
atomic_read(&ch->scst_sess->sess_cmd_count));
|
||||
__srpt_close_ch(ch);
|
||||
}
|
||||
spin_unlock_irq(&sdev->spinlock);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user