Close IB channel after session unregistration instead of before in order
authorbvassche <bvassche@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Mon, 11 Jan 2010 11:30:08 +0000 (11:30 +0000)
committerbvassche <bvassche@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Mon, 11 Jan 2010 11:30:08 +0000 (11:30 +0000)
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: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1444 d57e44dd-8a1f-0410-8b47-8ef2f437770f

srpt/src/ib_srpt.c

index d73ebd7..b5ef983 100644 (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);