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:
Bart Van Assche
2011-09-18 06:47:40 +00:00
parent 98a7e0e8b0
commit 344a72508a

View File

@@ -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;