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
This commit is contained in:
Bart Van Assche
2011-09-18 06:48:57 +00:00
parent 344a72508a
commit 2a4e7122e3
2 changed files with 0 additions and 5 deletions

View File

@@ -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);

View File

@@ -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;