summaryrefslogtreecommitdiffstats
path: root/fs/nfs/netns.h
diff options
context:
space:
mode:
authorStanislav Kinsbursky <skinsbursky@parallels.com>2012-08-20 16:00:46 +0200
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-10-02 00:25:57 +0200
commitb3d19c51723be69fddb64723bebb5a30fb57a483 (patch)
treeaf7bd8cc8db0fd669f8edd794f062b32f63c5aa4 /fs/nfs/netns.h
parentNFS: make nfs_callback_tcpport6 per network context (diff)
downloadlinux-b3d19c51723be69fddb64723bebb5a30fb57a483.tar.xz
linux-b3d19c51723be69fddb64723bebb5a30fb57a483.zip
NFS: callback per-net usage counting introduced
This patch also introduces refcount-aware nfs_callback_down_net() wrapper for svc_shutdown_net(). Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/netns.h')
-rw-r--r--fs/nfs/netns.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfs/netns.h b/fs/nfs/netns.h
index 137238b012fb..b9c7f9b1f91b 100644
--- a/fs/nfs/netns.h
+++ b/fs/nfs/netns.h
@@ -24,6 +24,7 @@ struct nfs_net {
struct idr cb_ident_idr; /* Protected by nfs_client_lock */
unsigned short nfs_callback_tcpport;
unsigned short nfs_callback_tcpport6;
+ int cb_users[NFS4_MAX_MINOR_VERSION + 1];
#endif
spinlock_t nfs_client_lock;
struct timespec boot_time;