Commit 10a38c33 authored by Tom Tucker's avatar Tom Tucker

svcrdma: Remove unused READ_DONE context flags bit

The RDMACTXT_F_READ_DONE bit is not longer used. Remove it.
Signed-off-by: default avatarTom Tucker <tom@opengridcomputing.com>
parent d16d4009
...@@ -85,7 +85,6 @@ struct svc_rdma_op_ctxt { ...@@ -85,7 +85,6 @@ struct svc_rdma_op_ctxt {
struct page *pages[RPCSVC_MAXPAGES]; struct page *pages[RPCSVC_MAXPAGES];
}; };
#define RDMACTXT_F_READ_DONE 1
#define RDMACTXT_F_LAST_CTXT 2 #define RDMACTXT_F_LAST_CTXT 2
struct svcxprt_rdma { struct svcxprt_rdma {
......
...@@ -325,7 +325,6 @@ static int rdma_read_xdr(struct svcxprt_rdma *xprt, ...@@ -325,7 +325,6 @@ static int rdma_read_xdr(struct svcxprt_rdma *xprt,
} }
ctxt->next = NULL; ctxt->next = NULL;
ctxt->direction = DMA_FROM_DEVICE; ctxt->direction = DMA_FROM_DEVICE;
clear_bit(RDMACTXT_F_READ_DONE, &ctxt->flags);
clear_bit(RDMACTXT_F_LAST_CTXT, &ctxt->flags); clear_bit(RDMACTXT_F_LAST_CTXT, &ctxt->flags);
/* Prepare READ WR */ /* Prepare READ WR */
......
...@@ -353,7 +353,6 @@ static void sq_cq_reap(struct svcxprt_rdma *xprt) ...@@ -353,7 +353,6 @@ static void sq_cq_reap(struct svcxprt_rdma *xprt)
case IB_WR_RDMA_READ: case IB_WR_RDMA_READ:
if (test_bit(RDMACTXT_F_LAST_CTXT, &ctxt->flags)) { if (test_bit(RDMACTXT_F_LAST_CTXT, &ctxt->flags)) {
set_bit(XPT_DATA, &xprt->sc_xprt.xpt_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); spin_lock_bh(&xprt->sc_read_complete_lock);
list_add_tail(&ctxt->dto_q, list_add_tail(&ctxt->dto_q,
&xprt->sc_read_complete_q); &xprt->sc_read_complete_q);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment