mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-20 04:01:26 +00:00
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
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user