提交 7ddc4ac4 编写于 作者: O Olga Kornievskaia 提交者: Yang Yingliang

NFSv4.1 make cachethis=no for writes

stable inclusion
from linux-4.19.105
commit 32865d65c4d232033f73e75bd9a003233df2b066

--------------------------------

commit cd1b659d upstream.

Turning caching off for writes on the server should improve performance.

Fixes: fba83f34 ("NFS: Pass "privileged" value to nfs4_init_sequence()")
Signed-off-by: NOlga Kornievskaia <kolga@netapp.com>
Reviewed-by: NTrond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: NAnna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Reviewed-by: NHou Tao <houtao1@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 5a683ee2
...@@ -5110,7 +5110,7 @@ static void nfs4_proc_write_setup(struct nfs_pgio_header *hdr, ...@@ -5110,7 +5110,7 @@ static void nfs4_proc_write_setup(struct nfs_pgio_header *hdr,
hdr->timestamp = jiffies; hdr->timestamp = jiffies;
msg->rpc_proc = &nfs4_procedures[NFSPROC4_CLNT_WRITE]; 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); nfs4_state_protect_write(server->nfs_client, clnt, msg, hdr);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册