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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 3 Aug 2015 16:29:17 +0000 (09:29 -0700)
commita400ef50e78554c779742d45c6f7bfa4fa39d990
treee40fbf402ddd1583b33afb9fc8fb1c7bade9181c
parent380db129455056b9edb8b8643023d5edbcb91595
NFS: Ensure we set NFS_CONTEXT_RESEND_WRITES when requeuing writes

commit c70701131f7a8edea91fc49d11796d342cff7c62 upstream.

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.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/pnfs.c
fs/nfs/write.c