diff options
author | Vasily Averin <vvs@virtuozzo.com> | 2017-11-12 03:48:16 -0500 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2017-11-17 16:43:50 -0500 |
commit | b0b5352d9a507b344d4a2aec21f0105c585251fe (patch) | |
tree | ff398733c4f25495f34fc134b6ed4eb86033b014 | |
parent | 0671d8f108762efc51ca893dbf8f0ba72f655c3d (diff) |
nfs client: exit_net cleanup check added
Be sure that nfs_client_list and nfs_volume_list lists initialized
in net_init hook were return to initial state in net_exit hook.
Signed-off-by: Vasily Averin <vvs@virtuozzo.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
-rw-r--r-- | fs/nfs/inode.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c index 52a60e399a2d..e5fcc1f095ae 100644 --- a/fs/nfs/inode.c +++ b/fs/nfs/inode.c | |||
@@ -2084,8 +2084,12 @@ static int nfs_net_init(struct net *net) | |||
2084 | 2084 | ||
2085 | static void nfs_net_exit(struct net *net) | 2085 | static void nfs_net_exit(struct net *net) |
2086 | { | 2086 | { |
2087 | struct nfs_net *nn = net_generic(net, nfs_net_id); | ||
2088 | |||
2087 | nfs_fs_proc_net_exit(net); | 2089 | nfs_fs_proc_net_exit(net); |
2088 | nfs_cleanup_cb_ident_idr(net); | 2090 | nfs_cleanup_cb_ident_idr(net); |
2091 | WARN_ON_ONCE(!list_empty(&nn->nfs_client_list)); | ||
2092 | WARN_ON_ONCE(!list_empty(&nn->nfs_volume_list)); | ||
2089 | } | 2093 | } |
2090 | 2094 | ||
2091 | static struct pernet_operations nfs_net_ops = { | 2095 | static struct pernet_operations nfs_net_ops = { |