nfsd: reduce some spinlocking in put_client_renew
authorJeff Layton <jlayton@primarydata.com>
Tue, 8 Jul 2014 18:02:50 +0000 (14:02 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
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 <jlayton@primarydata.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4state.c