aboutsummaryrefslogtreecommitdiff
path: root/fs/fs_struct.c
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2013-04-05 16:11:11 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-04-12 09:52:10 -0700
commit3144c24db26e1ae4d64d26f5724b5500b1363fec (patch)
tree2013e91343e41cdc1a3d2095add5f76ef33969b4 /fs/fs_struct.c
parentc80a1c58deeac0c21cbf8d952c1bd08f1afbe8ed (diff)
NFSv4/4.1: Fix bugs in nfs4[01]_walk_client_list
commit 7b1f1fd1842e6ede25183c267ae733a7f67f00bc upstream. It is unsafe to use list_for_each_entry_safe() here, because when we drop the nn->nfs_client_lock, we pin the _current_ list entry and ensure that it stays in the list, but we don't do the same for the _next_ list entry. Use of list_for_each_entry() is therefore the correct thing to do. Also fix the refcounting in nfs41_walk_client_list(). Finally, ensure that the nfs_client has finished being initialised and, in the case of NFSv4.1, that the session is set up. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com> Cc: Chuck Lever <chuck.lever@oracle.com> Cc: Bryan Schumaker <bjschuma@netapp.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/fs_struct.c')
0 files changed, 0 insertions, 0 deletions