nfsd: reduce some spinlocking in put_client_renew
authorJeff Layton <[email protected]>
Tue, 8 Jul 2014 18:02:50 +0000 (14:02 -0400)
committerJ. Bruce Fields <[email protected]>
Thu, 10 Jul 2014 17:41:00 +0000 (13:41 -0400)
commitd6c249b4d4cfef894cbda224a7a063d17aacb60a
treeb1b1463323ecb7bcbad5238ba7bdefa9a90a1572
parentdff1399f8addf7129c49bb2227469da79cc30b47
nfsd: reduce some spinlocking in put_client_renew

No need to take the lock unless the count goes to 0.

Signed-off-by: Jeff Layton <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: J. Bruce Fields <[email protected]>
fs/nfsd/nfs4state.c