nfsd: Add fine grained protection for the nfs4_file->fi_stateids list
authorTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 10 Jul 2014 18:07:25 +0000 (14:07 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Thu, 10 Jul 2014 19:05:25 +0000 (15:05 -0400)
commit1d31a2531ae91f8a89c0fffa883ef922c0dbb74d
tree8c68acb7b5472803ccd8cbf1ffab9b467a377904
parentd6c249b4d4cfef894cbda224a7a063d17aacb60a
nfsd: Add fine grained protection for the nfs4_file->fi_stateids list

Access to this list is currently serialized by the client_mutex. Add
finer grained locking around this list in preparation for its removal.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4state.c
fs/nfsd/state.h