]> err.no Git - linux-2.6/commitdiff
svcrdma: Remove unused READ_DONE context flags bit
authorTom Tucker <tom@opengridcomputing.com>
Wed, 30 Apr 2008 22:32:17 +0000 (17:32 -0500)
committerTom Tucker <tom@opengridcomputing.com>
Mon, 19 May 2008 12:33:50 +0000 (07:33 -0500)
The RDMACTXT_F_READ_DONE bit is not longer used. Remove it.

Signed-off-by: Tom Tucker <tom@opengridcomputing.com>
include/linux/sunrpc/svc_rdma.h
net/sunrpc/xprtrdma/svc_rdma_recvfrom.c
net/sunrpc/xprtrdma/svc_rdma_transport.c

index c11bbcc081f9d0cba45821a30315a43ab8cc047e..d0011f3db90c192a033fde48235bff863e69de9e 100644 (file)
@@ -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 {
index 5e03d95b25e2880ad62b6ade2edc1735de20a140..80c6ee82c34bad48536efda03a0269d6386b4926 100644 (file)
@@ -325,7 +325,6 @@ next_sge:
                }
                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 */
index d9ed5f24c3626e5d3442c5657a763c62a670fca3..4a79dfda146574f38f403f2d0319f0350204040a 100644 (file)
@@ -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);