summaryrefslogtreecommitdiffstats
path: root/xlators/nfs/lib/src/rpcsvc.h
diff options
context:
space:
mode:
authorShehjar Tikoo <shehjart@gluster.com>2011-06-29 00:34:58 +0000
committerAnand Avati <avati@gluster.com>2011-07-11 22:07:14 -0700
commit1ac5e8cc356d245ebe7e0d9065592024495f3e54 (patch)
tree5f14f0c86f5aa3ae75a4e3bd5ff464a3610b0cf4 /xlators/nfs/lib/src/rpcsvc.h
parent6cebcc568fba79e3496972fc50ae55a7812859ee (diff)
nfs-rpc: Use mempool for allocating connection object
Signed-off-by: Shehjar Tikoo <shehjart@gluster.com> Signed-off-by: Anand Avati <avati@gluster.com> BUG: 3039 (NFS RPC leaks memory in client connection creation on showmount -e) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=3039
Diffstat (limited to 'xlators/nfs/lib/src/rpcsvc.h')
-rw-r--r--xlators/nfs/lib/src/rpcsvc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/xlators/nfs/lib/src/rpcsvc.h b/xlators/nfs/lib/src/rpcsvc.h
index 4e7c8184547..5ce3ba8e63e 100644
--- a/xlators/nfs/lib/src/rpcsvc.h
+++ b/xlators/nfs/lib/src/rpcsvc.h
@@ -526,6 +526,9 @@ typedef struct rpc_svc_state {
gf_boolean_t register_portmap;
struct list_head allprograms;
+
+ /* Mempool for incoming connection objects. */
+ struct mem_pool *connpool;
} rpcsvc_t;