pNFS: Fix races between return-on-close and layoutreturn.
authorTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 9 Jul 2015 16:40:01 +0000 (18:40 +0200)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Sat, 11 Jul 2015 14:16:16 +0000 (16:16 +0200)
If one or more of the layout segments reports an error during I/O, then
we may have to send a layoutreturn to report the error back to the NFS
metadata server.
This patch ensures that the return-on-close code can detect the
outstanding layoutreturn, and not preempt it.

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

Simple merge
diff --cc fs/nfs/pnfs.c
Simple merge