diff options
author | Scott Mayhew <smayhew@redhat.com> | 2019-03-26 23:06:28 +0100 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2019-04-24 15:46:34 +0200 |
commit | 362063a595be959bc08f4163e6405a0266740091 (patch) | |
tree | 34e01e76a201ce71b0b938f4db3a145daa75099e /fs/nfsd/netns.h | |
parent | nfsd: un-deprecate nfsdcld (diff) | |
download | linux-362063a595be959bc08f4163e6405a0266740091.tar.xz linux-362063a595be959bc08f4163e6405a0266740091.zip |
nfsd: keep a tally of RECLAIM_COMPLETE operations when using nfsdcld
When using nfsdcld for NFSv4 client tracking, track the number of
RECLAIM_COMPLETE operations we receive from "known" clients to help in
deciding if we can lift the grace period early (or whether we need to
start a v4 grace period at all).
Signed-off-by: Scott Mayhew <smayhew@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/netns.h')
-rw-r--r-- | fs/nfsd/netns.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/nfsd/netns.h b/fs/nfsd/netns.h index 32cb8c027483..b42aaa22fba2 100644 --- a/fs/nfsd/netns.h +++ b/fs/nfsd/netns.h @@ -104,6 +104,9 @@ struct nfsd_net { time_t nfsd4_grace; bool somebody_reclaimed; + bool track_reclaim_completes; + atomic_t nr_reclaim_complete; + bool nfsd_net_up; bool lockd_up; |