nfsd: don't destroy client if mark_client_expired_locked fails
authorJeff Layton <jlayton@primarydata.com>
Wed, 30 Jul 2014 12:27:13 +0000 (08:27 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 1 Aug 2014 20:28:26 +0000 (16:28 -0400)
commit7abea1e8e81ad7ba100bd97c4881027c73e2db3e
tree7d17964991214a03a207a250c12d673c81f1b0e1
parent97403d95e1a7f5b257e90aad1f3284953bc72671
nfsd: don't destroy client if mark_client_expired_locked fails

If it fails, it means that the client is in use and so destroying it
would be bad. Currently, the client_mutex prevents this from happening
but once we remove it, we won't be able to do this.

Signed-off-by: Jeff Layton <jlayton@primarydata.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4state.c