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)
commitc70701131f7a8edea91fc49d11796d342cff7c62
tree72b9025f1179ac1fe608c27f497218fb04698b03
parent1ca018d28d96d07788474abf66a5f3e9594841f5
NFS: Ensure we set NFS_CONTEXT_RESEND_WRITES when requeuing writes

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