From 4c36a0632a6922ae6d239073bc2b0a216ab9571a Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Fri, 6 Apr 2012 08:00:14 +0000 Subject: [PATCH] ib_srpt: Fix a race triggered by the code for handling IB CM RTU notifications git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4192 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- srpt/src/ib_srpt.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/srpt/src/ib_srpt.c b/srpt/src/ib_srpt.c index 8a9bdea44..580e48b1e 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -2642,16 +2642,7 @@ static void srpt_cm_rtu_recv(struct ib_cm_id *cm_id) BUG_ON(!ch); if (srpt_test_and_set_ch_state(ch, CH_CONNECTING, CH_LIVE)) { - struct srpt_recv_ioctx *ioctx, *ioctx_tmp; - ret = srpt_ch_qp_rts(ch, ch->qp); - - list_for_each_entry_safe(ioctx, ioctx_tmp, &ch->cmd_wait_list, - wait_list) { - list_del(&ioctx->wait_list); - srpt_handle_new_iu(ch, ioctx, NULL, - SCST_CONTEXT_THREAD); - } if (ret) srpt_close_ch(ch); }