nfsd4: use cl_lock to synchronize all stateid idr calls
authorJeff Layton <jlayton@primarydata.com>
Wed, 30 Jul 2014 01:34:10 +0000 (21:34 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Thu, 31 Jul 2014 18:19:25 +0000 (14:19 -0400)
commit4770d722014b99e5438c0d1dc44db31ac4547af1
tree8718b531a52c2a578a1d5ba1421897a7f8206998
parent11b9164adad7cd119b82b1f2c911a6d9bc67f1cc
nfsd4: use cl_lock to synchronize all stateid idr calls

Currently, this is serialized by the client_mutex, which is slated for
removal. Add finer-grained locking here. Also, do some cleanup around
find_stateid to prepare for taking references.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: Benny Halevy <bhalevy@primarydata.com>
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