diff options
-rw-r--r-- | include/linux/sunrpc/svc_rdma.h | 1 | ||||
-rw-r--r-- | net/sunrpc/xprtrdma/svc_rdma_recvfrom.c | 1 | ||||
-rw-r--r-- | net/sunrpc/xprtrdma/svc_rdma_transport.c | 1 |
3 files changed, 0 insertions, 3 deletions
diff --git a/include/linux/sunrpc/svc_rdma.h b/include/linux/sunrpc/svc_rdma.h index c11bbcc081f9..d0011f3db90c 100644 --- a/include/linux/sunrpc/svc_rdma.h +++ b/include/linux/sunrpc/svc_rdma.h | |||
@@ -85,7 +85,6 @@ struct svc_rdma_op_ctxt { | |||
85 | struct page *pages[RPCSVC_MAXPAGES]; | 85 | struct page *pages[RPCSVC_MAXPAGES]; |
86 | }; | 86 | }; |
87 | 87 | ||
88 | #define RDMACTXT_F_READ_DONE 1 | ||
89 | #define RDMACTXT_F_LAST_CTXT 2 | 88 | #define RDMACTXT_F_LAST_CTXT 2 |
90 | 89 | ||
91 | struct svcxprt_rdma { | 90 | struct svcxprt_rdma { |
diff --git a/net/sunrpc/xprtrdma/svc_rdma_recvfrom.c b/net/sunrpc/xprtrdma/svc_rdma_recvfrom.c index 5e03d95b25e2..80c6ee82c34b 100644 --- a/net/sunrpc/xprtrdma/svc_rdma_recvfrom.c +++ b/net/sunrpc/xprtrdma/svc_rdma_recvfrom.c | |||
@@ -325,7 +325,6 @@ next_sge: | |||
325 | } | 325 | } |
326 | ctxt->next = NULL; | 326 | ctxt->next = NULL; |
327 | ctxt->direction = DMA_FROM_DEVICE; | 327 | ctxt->direction = DMA_FROM_DEVICE; |
328 | clear_bit(RDMACTXT_F_READ_DONE, &ctxt->flags); | ||
329 | clear_bit(RDMACTXT_F_LAST_CTXT, &ctxt->flags); | 328 | clear_bit(RDMACTXT_F_LAST_CTXT, &ctxt->flags); |
330 | 329 | ||
331 | /* Prepare READ WR */ | 330 | /* Prepare READ WR */ |
diff --git a/net/sunrpc/xprtrdma/svc_rdma_transport.c b/net/sunrpc/xprtrdma/svc_rdma_transport.c index d9ed5f24c362..4a79dfda1465 100644 --- a/net/sunrpc/xprtrdma/svc_rdma_transport.c +++ b/net/sunrpc/xprtrdma/svc_rdma_transport.c | |||
@@ -353,7 +353,6 @@ static void sq_cq_reap(struct svcxprt_rdma *xprt) | |||
353 | case IB_WR_RDMA_READ: | 353 | case IB_WR_RDMA_READ: |
354 | if (test_bit(RDMACTXT_F_LAST_CTXT, &ctxt->flags)) { | 354 | if (test_bit(RDMACTXT_F_LAST_CTXT, &ctxt->flags)) { |
355 | set_bit(XPT_DATA, &xprt->sc_xprt.xpt_flags); | 355 | set_bit(XPT_DATA, &xprt->sc_xprt.xpt_flags); |
356 | set_bit(RDMACTXT_F_READ_DONE, &ctxt->flags); | ||
357 | spin_lock_bh(&xprt->sc_read_complete_lock); | 356 | spin_lock_bh(&xprt->sc_read_complete_lock); |
358 | list_add_tail(&ctxt->dto_q, | 357 | list_add_tail(&ctxt->dto_q, |
359 | &xprt->sc_read_complete_q); | 358 | &xprt->sc_read_complete_q); |