nfsd4: use reference count to free client
authorJ. Bruce Fields <bfields@redhat.com>
Thu, 21 Mar 2019 00:03:02 +0000 (20:03 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Wed, 3 Jul 2019 21:52:49 +0000 (17:52 -0400)
commit59f8e91b75ecf16f22d62eca0659c13901eff5f3
tree71be0a7af288721f33e8c34e5ff6691d9c200098
parent14ed14cc7c062bbed7821be0a93938dc78a49803
nfsd4: use reference count to free client

Keep a second reference count which is what is really used to decide
when to free the client's memory.

Next I'm going to add an nfsd/clients/ directory with a subdirectory for
each NFSv4 client.  File objects under nfsd/clients/ will hold these
references.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4state.c
fs/nfsd/state.h