Skip to content

Commit cd1b659

Browse files
olgakorn1amschuma-ntap
authored andcommitted
NFSv4.1 make cachethis=no for writes
Turning caching off for writes on the server should improve performance. Fixes: fba83f3 ("NFS: Pass "privileged" value to nfs4_init_sequence()") Signed-off-by: Olga Kornievskaia <[email protected]> Reviewed-by: Trond Myklebust <[email protected]> Signed-off-by: Anna Schumaker <[email protected]>
1 parent ca1c671 commit cd1b659

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/nfs/nfs4proc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5336,7 +5336,7 @@ static void nfs4_proc_write_setup(struct nfs_pgio_header *hdr,
53365336
hdr->timestamp = jiffies;
53375337

53385338
msg->rpc_proc = &nfs4_procedures[NFSPROC4_CLNT_WRITE];
5339-
nfs4_init_sequence(&hdr->args.seq_args, &hdr->res.seq_res, 1, 0);
5339+
nfs4_init_sequence(&hdr->args.seq_args, &hdr->res.seq_res, 0, 0);
53405340
nfs4_state_protect_write(server->nfs_client, clnt, msg, hdr);
53415341
}
53425342

0 commit comments

Comments
 (0)