mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-19 05:36:22 +00:00
Close IB channel after session unregistration instead of before in order
to prevent the following errors to occur: ib_srpt: srpt_completion:1737:***ERROR***: failed sending response status= 4 ib_srpt: srpt_completion:1737:***ERROR***: failed sending response status= 5 git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1444 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -2954,7 +2954,6 @@ static int srpt_release(struct scst_tgt *scst_tgt)
|
||||
list_del(&ch->list);
|
||||
atomic_set(&ch->state, RDMA_CHANNEL_DISCONNECTING);
|
||||
spin_unlock_irq(&sdev->spinlock);
|
||||
ib_send_cm_dreq(ch->cm_id, NULL, 0);
|
||||
scst_unregister_session(ch->scst_sess, true,
|
||||
srpt_release_channel);
|
||||
spin_lock_irq(&sdev->spinlock);
|
||||
|
||||
Reference in New Issue
Block a user