NFS: Ensure we set NFS_CONTEXT_RESEND_WRITES when requeuing writes
authorTrond Myklebust <trond.myklebust@primarydata.com>
Wed, 17 Jun 2015 23:56:22 +0000 (19:56 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 18 Jun 2015 00:00:42 +0000 (20:00 -0400)
If a write attempt fails, and the write is queued up for resending to
the server, as opposed to being dropped, then we need to set the
appropriate flag so that nfs_file_fsync() does the right thing.

Cc: stable@vger.kernel.org
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/pnfs.c
fs/nfs/write.c

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