diff options
author | Trond Myklebust <trondmy@gmail.com> | 2020-01-06 15:25:13 -0500 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2020-01-15 10:54:33 -0500 |
commit | 8c9cb71491e7fd3ebee90d9799c9ca5b769bd0f4 (patch) | |
tree | 9193f0a93d2730a8757f30053ebad9b114552b4a /fs/nfs/write.c | |
parent | e8194b7dd39ec5423c32a43542f8348a9bd6956f (diff) | |
download | linux-8c9cb71491e7fd3ebee90d9799c9ca5b769bd0f4.tar.gz linux-8c9cb71491e7fd3ebee90d9799c9ca5b769bd0f4.tar.bz2 linux-8c9cb71491e7fd3ebee90d9799c9ca5b769bd0f4.zip |
NFS: When resending after a short write, reset the reply count to zero
If we're resending a write due to a short read or write, ensure we
reset the reply count to zero.
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'fs/nfs/write.c')
-rw-r--r-- | fs/nfs/write.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfs/write.c b/fs/nfs/write.c index 83f92a4d65dc..c478b772cc49 100644 --- a/fs/nfs/write.c +++ b/fs/nfs/write.c @@ -1658,6 +1658,8 @@ static void nfs_writeback_result(struct rpc_task *task, */ argp->stable = NFS_FILE_SYNC; } + resp->count = 0; + resp->verf->committed = 0; rpc_restart_call_prepare(task); } } |