knfsd: don't shutdown callbacks until nfsv4 client is freed
authorJ. Bruce Fields <bfields@citi.umich.edu>
Wed, 12 Sep 2007 12:43:59 +0000 (08:43 -0400)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Tue, 9 Oct 2007 22:31:57 +0000 (18:31 -0400)
commit1b1a9b3163a83f52ea2ac333846d4dfd2c4edd90
treebfaaa512b4efa08bed800330f654ba9637dd2f58
parent0272e1fd9f4fa8a43357c168e081744f99e67195
knfsd: don't shutdown callbacks until nfsv4 client is freed

If a callback still holds a reference on the client, then it may be
about to perform an rpc call, so it isn't safe to call rpc_shutdown().
(Though rpc_shutdown() does wait for any outstanding rpc's, it can't
know if a new rpc is about to be issued with that client.)

So, wait to shutdown the rpc_client until the reference count on the
client has gone to zero.

Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
fs/nfsd/nfs4state.c