diff options
author | Stanislav Kinsbursky <skinsbursky@parallels.com> | 2012-12-06 14:23:19 +0300 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2012-12-10 16:25:38 -0500 |
commit | b9c0ef8571c6ae33465dcf41d496ce2ad783c49d (patch) | |
tree | 5216e0d3be135d6b73bb7f2acc539bcf6fffadba /fs/nfsd/nfssvc.c | |
parent | 2c2fe2909e124c32a34dbbb3ac129112524fc540 (diff) | |
download | op-kernel-dev-b9c0ef8571c6ae33465dcf41d496ce2ad783c49d.zip op-kernel-dev-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/nfssvc.c')
-rw-r--r-- | fs/nfsd/nfssvc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfsd/nfssvc.c b/fs/nfsd/nfssvc.c index 6e17efd..40992cd 100644 --- a/fs/nfsd/nfssvc.c +++ b/fs/nfsd/nfssvc.c @@ -27,7 +27,6 @@ extern struct svc_program nfsd_program; static int nfsd(void *vrqstp); -struct timeval nfssvc_boot; /* * nfsd_mutex protects nfsd_serv -- both the pointer itself and the members @@ -367,6 +366,7 @@ static int nfsd_get_default_max_blksize(void) int nfsd_create_serv(struct net *net) { int error; + struct nfsd_net *nn = net_generic(net, nfsd_net_id); WARN_ON(!mutex_is_locked(&nfsd_mutex)); if (nfsd_serv) { @@ -388,7 +388,7 @@ int nfsd_create_serv(struct net *net) } set_max_drc(); - do_gettimeofday(&nfssvc_boot); /* record boot time */ + do_gettimeofday(&nn->nfssvc_boot); /* record boot time */ return 0; } |