nfsd: Add locking to the nfs4_file->fi_fds[] array
authorTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 10 Jul 2014 18:07:26 +0000 (14:07 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Thu, 10 Jul 2014 19:05:26 +0000 (15:05 -0400)
commitde18643dce70e0d7c3dbccb5d2c8f17f04bc24a6
treeb569dea6b6922cf46cb2d124ca620a9c1e048206
parent1d31a2531ae91f8a89c0fffa883ef922c0dbb74d
nfsd: Add locking to the nfs4_file->fi_fds[] array

Preparation for removal of the client_mutex, which currently protects
this array. While we don't actually need the find_*_file_locked variants
just yet, a later patch will. So go ahead and add them now to reduce
future churn in this code.

Signed-off-by: Trond Myklebust <trond.myklebust@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
fs/nfsd/state.h