Commit 8c9cb714 authored by Trond Myklebust's avatar Trond Myklebust Committed by Anna Schumaker
Browse files

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: default avatarTrond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: default avatarAnna Schumaker <Anna.Schumaker@Netapp.com>
parent e8194b7d
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -281,6 +281,8 @@ static void nfs_readpage_retry(struct rpc_task *task,
	argp->offset += resp->count;
	argp->pgbase += resp->count;
	argp->count -= resp->count;
	resp->count = 0;
	resp->eof = 0;
	rpc_restart_call_prepare(task);
}

+2 −0
Original line number Diff line number Diff line
@@ -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);
	}
}