From 2a4e7122e3094d0edd452517c77cfefb176068a4 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sun, 18 Sep 2011 06:48:57 +0000 Subject: [PATCH] ib_srpt: Eliminate a variable that became superfluous due to previous merges git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3865 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- srpt/src/ib_srpt.c | 3 --- srpt/src/ib_srpt.h | 2 -- 2 files changed, 5 deletions(-) diff --git a/srpt/src/ib_srpt.c b/srpt/src/ib_srpt.c index 5d33269bf..1f047d6ac 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -1974,7 +1974,6 @@ static void srpt_completion(struct ib_cq *cq, void *ctx) struct srpt_rdma_ch *ch = ctx; BUG_ON(!ch); - atomic_inc(&ch->processing_compl); switch (thread) { case MODE_IB_COMPLETION_IN_THREAD: wake_up_process(ch->thread); @@ -1986,7 +1985,6 @@ static void srpt_completion(struct ib_cq *cq, void *ctx) srpt_process_completion(cq, ch, SCST_CONTEXT_TASKLET); break; } - atomic_dec(&ch->processing_compl); } static int srpt_compl_thread(void *arg) @@ -2452,7 +2450,6 @@ static int srpt_cm_req_recv(struct ib_cm_id *cm_id, * for the SRP protocol to the SCST SCSI command queue size. */ ch->rq_size = min(SRPT_RQ_SIZE, scst_get_max_lun_commands(NULL, 0)); - atomic_set(&ch->processing_compl, 0); atomic_set(&ch->state, CH_CONNECTING); INIT_LIST_HEAD(&ch->cmd_wait_list); diff --git a/srpt/src/ib_srpt.h b/srpt/src/ib_srpt.h index eb62623b2..c2d75f75c 100644 --- a/srpt/src/ib_srpt.h +++ b/srpt/src/ib_srpt.h @@ -262,7 +262,6 @@ enum rdma_ch_state { * the channel. * @cm_id: IB CM ID associated with the channel. * @rq_size: IB receive queue size. - * @processing_compl: whether or not an IB completion is being processed. * @qp: IB queue pair used for communicating over this channel. * @sq_wr_avail: number of work requests available in the send queue. * @cq: IB completion queue for this channel. @@ -289,7 +288,6 @@ struct srpt_rdma_ch { struct ib_cm_id *cm_id; struct ib_qp *qp; int rq_size; - atomic_t processing_compl; struct ib_cq *cq; atomic_t sq_wr_avail; struct srpt_port *sport;