From 661ecd52d25f78e303d3843fcb61a14584025171 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Mon, 11 Jan 2010 11:30:08 +0000 Subject: [PATCH] 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 --- srpt/src/ib_srpt.c | 1 - 1 file changed, 1 deletion(-) diff --git a/srpt/src/ib_srpt.c b/srpt/src/ib_srpt.c index d73ebd752..b5ef983ce 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -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);