nfsd: give block_delegation and delegation_blocked its own spinlock
authorJeff Layton <jlayton@primarydata.com>
Fri, 25 Jul 2014 11:34:26 +0000 (07:34 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 29 Jul 2014 18:49:57 +0000 (14:49 -0400)
commitf54fe962b88fbecd918feeb49b8838e272184c91
treeb227371770c27c5b66465acc069bd4ebfa4cdcc8
parent0b26693c56cc4beae2f913e737b15c12bc2b5b97
nfsd: give block_delegation and delegation_blocked its own spinlock

The state lock can be fairly heavily contended, and there's no reason
that nfs4_file lookups and delegation_blocked should be mutually
exclusive.  Let's give the new block_delegation code its own spinlock.
It does mean that we'll need to take a different lock in the delegation
break code, but that's not generally as critical to performance.

Cc: Neil Brown <neilb@suse.de>
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