NFSv4.1: Fix a race in nfs4_write_inode
authorTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 13 Jan 2014 18:34:36 +0000 (13:34 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 13 Jan 2014 18:34:36 +0000 (13:34 -0500)
commit71244d9bdf185e5bba1473254241f9f65d4dd0d8
tree054ddd9a95c3ada5243dead8da568471fc7d5137
parentd8c951c313ed1d7144b55c0d56f7c53220044dda
NFSv4.1: Fix a race in nfs4_write_inode

nfs4_write_inode() must not be allowed to exit until the layoutcommit
is done. That means that both NFS_INO_LAYOUTCOMMIT and
NFS_INO_LAYOUTCOMMITTING have to be cleared.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/nfs4super.c
fs/nfs/pnfs.c