diff options
author | Tom Tucker <tom@opengridcomputing.com> | 2008-05-28 14:17:44 -0400 |
---|---|---|
committer | Tom Tucker <tom@opengridcomputing.com> | 2008-07-02 16:01:56 -0400 |
commit | 87295b6c5c7fd7bbc0ce3e7f42d2adbbac7352b9 (patch) | |
tree | 11a273d3fd2c61bbbf102b80c0b45a0f0021d499 /include | |
parent | e6ab9143719ff76f0b95f0866c4d0f6c743ad2e0 (diff) |
svcrdma: Add dma map count and WARN_ON
Add a dma map count in order to verify that all DMA mapping resources
have been freed when the transport is closed.
Signed-off-by: Tom Tucker <tom@opengridcomputing.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/sunrpc/svc_rdma.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/sunrpc/svc_rdma.h b/include/linux/sunrpc/svc_rdma.h index fd5e8a1c17de..ab93afc03c43 100644 --- a/include/linux/sunrpc/svc_rdma.h +++ b/include/linux/sunrpc/svc_rdma.h | |||
@@ -130,6 +130,7 @@ struct svcxprt_rdma { | |||
130 | 130 | ||
131 | struct ib_pd *sc_pd; | 131 | struct ib_pd *sc_pd; |
132 | 132 | ||
133 | atomic_t sc_dma_used; | ||
133 | atomic_t sc_ctxt_used; | 134 | atomic_t sc_ctxt_used; |
134 | struct list_head sc_ctxt_free; | 135 | struct list_head sc_ctxt_free; |
135 | int sc_ctxt_cnt; | 136 | int sc_ctxt_cnt; |