]> git.karo-electronics.de Git - linux-beck.git/commit
NFS: nfs41_walk_client_list(): re-lock before iterating
authorChuck Lever <chuck.lever@oracle.com>
Tue, 2 Oct 2012 16:18:12 +0000 (09:18 -0700)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 2 Oct 2012 16:25:02 +0000 (09:25 -0700)
commitc2ccc084eb46ae718a200ad9c2606c258bf79a25
treeb7699623a38b969f21265310f5796bdb34f48b3c
parentee314c2a35ee7ea7ffa72e2aca83b041138f3358
NFS: nfs41_walk_client_list(): re-lock before iterating

Sparse identified an execution path in nfs41_walk_client_list()
where the nfs_client_lock is not re-acquired before taking the next
loop iteration.

fs/nfs/nfs4client.c:437:9: sparse: context imbalance in
 'nfs41_walk_client_list' - different lock contexts for basic block

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Cc: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs4client.c