diff --git a/srpt/src/ib_srpt.c b/srpt/src/ib_srpt.c index 9c7023a7b..ddd4ba153 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -2144,8 +2144,7 @@ static void srpt_release_channel_work(struct work_struct *w) #else ch = container_of(w, struct srpt_rdma_ch, release_work); #endif - TRACE_DBG("ch = %p; ch->scst_sess = %p; release_done = %p", ch, - ch->scst_sess, ch->release_done); + TRACE_DBG("ch = %p; ch->scst_sess = %p", ch, ch->scst_sess); WARN_ON(ch->state != CH_RELEASING); sdev = ch->sport->sdev; @@ -2175,9 +2174,6 @@ static void srpt_release_channel_work(struct work_struct *w) ib_destroy_cm_id(ch->cm_id); - if (ch->release_done) - complete(ch->release_done); - wake_up(&sdev->ch_releaseQ); kfree(ch); diff --git a/srpt/src/ib_srpt.h b/srpt/src/ib_srpt.h index 684109289..290a20264 100644 --- a/srpt/src/ib_srpt.h +++ b/srpt/src/ib_srpt.h @@ -292,7 +292,6 @@ enum rdma_ch_state { * @scst_sess: SCST session information associated with this SRP channel. * @sess_name: SCST session name. * @release_work: - * @release_done: */ struct srpt_rdma_ch { struct task_struct *thread; @@ -318,7 +317,6 @@ struct srpt_rdma_ch { struct scst_session *scst_sess; u8 sess_name[36]; struct work_struct release_work; - struct completion *release_done; }; /**