summaryrefslogtreecommitdiffstats
path: root/fs/nfs
diff options
context:
space:
mode:
authorOlga Kornievskaia <kolga@netapp.com>2020-02-12 17:32:12 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-02-19 19:51:59 +0100
commit32865d65c4d232033f73e75bd9a003233df2b066 (patch)
tree242c5e02d2cd13d5f308af2b212947b3585a2d51 /fs/nfs
parentaa90c2cbbefe5241307c823e1eec25c1d85668bc (diff)
downloadlinux-stable-32865d65c4d232033f73e75bd9a003233df2b066.tar.gz
linux-stable-32865d65c4d232033f73e75bd9a003233df2b066.tar.bz2
linux-stable-32865d65c4d232033f73e75bd9a003233df2b066.zip
NFSv4.1 make cachethis=no for writes
commit cd1b659d8ce7697ee9799b64f887528315b9097b upstream. Turning caching off for writes on the server should improve performance. Fixes: fba83f34119a ("NFS: Pass "privileged" value to nfs4_init_sequence()") Signed-off-by: Olga Kornievskaia <kolga@netapp.com> Reviewed-by: Trond Myklebust <trond.myklebust@hammerspace.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/nfs4proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index fad795041d32..668b648064b7 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -5117,7 +5117,7 @@ static void nfs4_proc_write_setup(struct nfs_pgio_header *hdr,
hdr->timestamp = jiffies;
msg->rpc_proc = &nfs4_procedures[NFSPROC4_CLNT_WRITE];
- nfs4_init_sequence(&hdr->args.seq_args, &hdr->res.seq_res, 1, 0);
+ nfs4_init_sequence(&hdr->args.seq_args, &hdr->res.seq_res, 0, 0);
nfs4_state_protect_write(server->nfs_client, clnt, msg, hdr);
}