]> 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>
Fri, 21 Sep 2012 01:32:33 +0000 (21:32 -0400)
commit2db8486eae8a4b44b33364787147c12172c511dd
treef3a1c40661fd922d7792e5365128955f13649e80
parente60f6abb77f3293536287cf753b5b7e2fa351683
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