mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-28 09:20:18 +00:00
ib_srpt: Only invoke wake_up_process() in threaded mode
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3864 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -2164,7 +2164,8 @@ static bool __srpt_close_ch(struct srpt_rdma_ch *ch)
|
||||
/* fall through */
|
||||
case CH_LIVE:
|
||||
was_live = true;
|
||||
wake_up_process(ch->thread);
|
||||
if (thread == MODE_IB_COMPLETION_IN_THREAD)
|
||||
wake_up_process(ch->thread);
|
||||
if (ib_send_cm_dreq(ch->cm_id, NULL, 0) < 0)
|
||||
PRINT_ERROR("%s", "sending CM DREQ failed.");
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user