]> git.karo-electronics.de Git - karo-tx-linux.git/commit
NFSv4.1: Fix a race in the pNFS return-on-close code
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 21 Sep 2012 00:15:57 +0000 (20:15 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 24 Sep 2012 17:24:27 +0000 (13:24 -0400)
commitbfe0c8ef9e5bf89fedca3566aa7ccd31244f6e3d
tree23dce847756bcb28680acc3acff1976f3c1f1810
parent42f0686c9b3dfb5b1cc06e1fda34d778f59181ff
NFSv4.1: Fix a race in the pNFS return-on-close code

If we sleep after dropping the inode->i_lock, then we are no longer
atomic with respect to the rpc_wake_up() call in pnfs_layout_remove_lseg().

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs4proc.c
fs/nfs/pnfs.c
fs/nfs/pnfs.h