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:
Bart Van Assche
2010-01-11 11:30:08 +00:00
parent 0cd53b65ef
commit 661ecd52d2
-1
View File
@@ -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);