From: Andy Adamson Date: Mon, 22 Jul 2013 16:42:05 +0000 (-0400) Subject: NFSv4.1 Use the mount point rpc_clnt for layoutreturn X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=1771c5774ba0b8ec35c3337fe9246f2f0f42b11b;p=openwrt%2Fstaging%2Fblogic.git NFSv4.1 Use the mount point rpc_clnt for layoutreturn Should not use the clientid maintenance rpc_clnt. Signed-off-by: Andy Adamson Signed-off-by: Trond Myklebust --- diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index 1bf291f03c61..c2fc5dd0a03c 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c @@ -6876,7 +6876,7 @@ int nfs4_proc_layoutreturn(struct nfs4_layoutreturn *lrp) .rpc_cred = lrp->cred, }; struct rpc_task_setup task_setup_data = { - .rpc_client = lrp->clp->cl_rpcclient, + .rpc_client = NFS_SERVER(lrp->args.inode)->client, .rpc_message = &msg, .callback_ops = &nfs4_layoutreturn_call_ops, .callback_data = lrp,