aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorTom Tucker <tom@opengridcomputing.com>2008-05-28 16:14:02 -0400
committerTom Tucker <tom@opengridcomputing.com>2008-07-02 16:02:02 -0400
commit8948896c9e098c6fd31a6a698a598a7cbd7fa40e (patch)
tree465a4d93c8becb0b2e4750cc1286391916f887b5 /include/linux
parentbf5927d84e70d522f234ca247b27d27c63878b93 (diff)
svcrdma: Change WR context get/put to use the kmem cache
Change the WR context pool to be shared across mount points. This reduces the RDMA transport memory footprint significantly since idle mounts don't consume WR context memory. Signed-off-by: Tom Tucker <tom@opengridcomputing.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/sunrpc/svc_rdma.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/include/linux/sunrpc/svc_rdma.h b/include/linux/sunrpc/svc_rdma.h
index d8d74c4ab504..ef2e3a20bf3b 100644
--- a/include/linux/sunrpc/svc_rdma.h
+++ b/include/linux/sunrpc/svc_rdma.h
@@ -73,7 +73,6 @@ extern atomic_t rdma_stat_sq_prod;
73struct svc_rdma_op_ctxt { 73struct svc_rdma_op_ctxt {
74 struct svc_rdma_op_ctxt *read_hdr; 74 struct svc_rdma_op_ctxt *read_hdr;
75 int hdr_count; 75 int hdr_count;
76 struct list_head free_list;
77 struct xdr_buf arg; 76 struct xdr_buf arg;
78 struct list_head dto_q; 77 struct list_head dto_q;
79 enum ib_wr_opcode wr_op; 78 enum ib_wr_opcode wr_op;
@@ -131,11 +130,6 @@ struct svcxprt_rdma {
131 130
132 atomic_t sc_dma_used; 131 atomic_t sc_dma_used;
133 atomic_t sc_ctxt_used; 132 atomic_t sc_ctxt_used;
134 struct list_head sc_ctxt_free;
135 int sc_ctxt_cnt;
136 int sc_ctxt_bump;
137 int sc_ctxt_max;
138 spinlock_t sc_ctxt_lock;
139 struct list_head sc_rq_dto_q; 133 struct list_head sc_rq_dto_q;
140 spinlock_t sc_rq_dto_lock; 134 spinlock_t sc_rq_dto_lock;
141 struct ib_qp *sc_qp; 135 struct ib_qp *sc_qp;