]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerSasha Levin <sasha.levin@oracle.com>
Sat, 4 Jul 2015 03:02:33 +0000 (23:02 -0400)
commit2d336687b66cd254c9bdee61b3300d787a8acc1e
tree6d365330c73efd9dfc15f1e88c8258f25fad7c74
parent4533a94725b43a5f3d28b1fe6e37bec743c295f9
NFS: Ensure we set NFS_CONTEXT_RESEND_WRITES when requeuing writes

[ Upstream commit c70701131f7a8edea91fc49d11796d342cff7c62 ]

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>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
fs/nfs/pnfs.c
fs/nfs/write.c