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>
Fri, 28 Sep 2012 20:03:11 +0000 (16:03 -0400)
commit7fdab069b7172f2348cf3d87e19c6c24340292bf
tree487de5c39bb8be13be52091acc83139435943000
parent115ce575cb10918514d053ef15f597a4e6ff60e9
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