Skip to content

Commit

Permalink
svcrdma: Remove unused READ_DONE context flags bit
Browse files Browse the repository at this point in the history
The RDMACTXT_F_READ_DONE bit is not longer used. Remove it.

Signed-off-by: Tom Tucker <tom@opengridcomputing.com>
  • Loading branch information
Tom Tucker committed May 19, 2008
1 parent d16d400 commit 10a38c3
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion include/linux/sunrpc/svc_rdma.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ struct svc_rdma_op_ctxt {
struct page *pages[RPCSVC_MAXPAGES];
};

#define RDMACTXT_F_READ_DONE 1
#define RDMACTXT_F_LAST_CTXT 2

struct svcxprt_rdma {
Expand Down
1 change: 0 additions & 1 deletion net/sunrpc/xprtrdma/svc_rdma_recvfrom.c
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,6 @@ static int rdma_read_xdr(struct svcxprt_rdma *xprt,
}
ctxt->next = NULL;
ctxt->direction = DMA_FROM_DEVICE;
clear_bit(RDMACTXT_F_READ_DONE, &ctxt->flags);
clear_bit(RDMACTXT_F_LAST_CTXT, &ctxt->flags);

/* Prepare READ WR */
Expand Down
1 change: 0 additions & 1 deletion net/sunrpc/xprtrdma/svc_rdma_transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,6 @@ static void sq_cq_reap(struct svcxprt_rdma *xprt)
case IB_WR_RDMA_READ:
if (test_bit(RDMACTXT_F_LAST_CTXT, &ctxt->flags)) {
set_bit(XPT_DATA, &xprt->sc_xprt.xpt_flags);
set_bit(RDMACTXT_F_READ_DONE, &ctxt->flags);
spin_lock_bh(&xprt->sc_read_complete_lock);
list_add_tail(&ctxt->dto_q,
&xprt->sc_read_complete_q);
Expand Down

0 comments on commit 10a38c3

Please sign in to comment.