summary refs log tree commit diff
path: root/fs/nfsd/netns.h
diff options
context:
space:
mode:
authorStanislav Kinsbursky <skinsbursky@parallels.com>2012-12-06 14:23:19 +0300
committerJ. Bruce Fields <bfields@redhat.com>2012-12-10 16:25:38 -0500
commitb9c0ef8571c6ae33465dcf41d496ce2ad783c49d (patch)
tree5216e0d3be135d6b73bb7f2acc539bcf6fffadba /fs/nfsd/netns.h
parent2c2fe2909e124c32a34dbbb3ac129112524fc540 (diff)
downloadlinux-b9c0ef8571c6ae33465dcf41d496ce2ad783c49d.tar.gz
nfsd: make NFSd service boot time per-net
This is simple: an NFSd service can be started at different times in
different network environments. So, its "boot time" has to be assigned
per net.

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.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/nfsd/netns.h b/fs/nfsd/netns.h
index 543ac486fd5d..3b283eaab10d 100644
--- a/fs/nfsd/netns.h
+++ b/fs/nfsd/netns.h
@@ -94,6 +94,11 @@ struct nfsd_net {
 	time_t nfsd4_grace;
 
 	bool nfsd_net_up;
+
+	/*
+	 * Time of server startup
+	 */
+	struct timeval nfssvc_boot;
 };
 
 /* Simple check to find out if a given net was properly initialized */