nfsd: Add locking to protect the state owner lists
authorJeff Layton <jlayton@primarydata.com>
Wed, 30 Jul 2014 01:34:12 +0000 (21:34 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Thu, 31 Jul 2014 18:20:07 +0000 (14:20 -0400)
commit1c755dc1ada95adc9aa41102baada73659397b80
treef0a71a29d1b9a834dfacc9086c86bb9c77ac45dd
parentb49e084d8c7df1632bb2b94ae1a21c8a4cf2d8a4
nfsd: Add locking to protect the state owner lists

Change to using the clp->cl_lock for this. For now, there's a lot of
cl_lock thrashing, but in later patches we'll eliminate that and close
the potential races that can occur when releasing the cl_lock while
walking the lists. For now, the client_mutex prevents those races.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: Jeff Layton <jlayton@primarydata.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4state.c