|
@@ -4979,7 +4979,8 @@ bool nfs4_write_need_cache_consistency_data(struct nfs_pgio_header *hdr)
|
|
}
|
|
}
|
|
|
|
|
|
static void nfs4_proc_write_setup(struct nfs_pgio_header *hdr,
|
|
static void nfs4_proc_write_setup(struct nfs_pgio_header *hdr,
|
|
- struct rpc_message *msg)
|
|
|
|
|
|
+ struct rpc_message *msg,
|
|
|
|
+ struct rpc_clnt **clnt)
|
|
{
|
|
{
|
|
struct nfs_server *server = NFS_SERVER(hdr->inode);
|
|
struct nfs_server *server = NFS_SERVER(hdr->inode);
|
|
|
|
|
|
@@ -4996,6 +4997,7 @@ static void nfs4_proc_write_setup(struct nfs_pgio_header *hdr,
|
|
|
|
|
|
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);
|
|
nfs4_init_sequence(&hdr->args.seq_args, &hdr->res.seq_res, 1);
|
|
|
|
+ nfs4_state_protect_write(server->nfs_client, clnt, msg, hdr);
|
|
}
|
|
}
|
|
|
|
|
|
static void nfs4_proc_commit_rpc_prepare(struct rpc_task *task, struct nfs_commit_data *data)
|
|
static void nfs4_proc_commit_rpc_prepare(struct rpc_task *task, struct nfs_commit_data *data)
|