summaryrefslogtreecommitdiffstats
path: root/fs/nfsd/netns.h
diff options
context:
space:
mode:
authorStanislav Kinsbursky <skinsbursky@parallels.com>2012-11-14 18:22:01 +0300
committerJ. Bruce Fields <bfields@redhat.com>2012-11-15 07:40:49 -0500
commit73758fed711b847d833b9b0db59137eaeed06485 (patch)
tree3941b6db0317eafd62364e6acd0a72901b322a76 /fs/nfsd/netns.h
parent5ed58bb243484e01e82ffca8451907403168e262 (diff)
downloadop-kernel-dev-73758fed711b847d833b9b0db59137eaeed06485.zip
op-kernel-dev-73758fed711b847d833b9b0db59137eaeed06485.tar.gz
nfsd: make close_lru list per net
This list holds nfs4 clients (open) stateowner queue for last close replay, which are network namespace aware. So let's make this list per network namespace too. Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/netns.h')
-rw-r--r--fs/nfsd/netns.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/nfsd/netns.h b/fs/nfsd/netns.h
index 9a98a0a..a356ea3 100644
--- a/fs/nfsd/netns.h
+++ b/fs/nfsd/netns.h
@@ -71,8 +71,14 @@ struct nfsd_net {
/*
* client_lru holds client queue ordered by nfs4_client.cl_time
* for lease renewal.
+ *
+ * close_lru holds (open) stateowner queue ordered by nfs4_stateowner.so_time
+ * for last close replay.
+ *
+ * All of the above fields are protected by the client_mutex.
*/
struct list_head client_lru;
+ struct list_head close_lru;
};
extern int nfsd_net_id;
OpenPOWER on IntegriCloud