NFSv4.1 Use the mount point rpc_clnt for layoutreturn
authorAndy Adamson <andros@netapp.com>
Mon, 22 Jul 2013 16:42:05 +0000 (12:42 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 23 Jul 2013 22:18:54 +0000 (18:18 -0400)
Should not use the clientid maintenance rpc_clnt.

Signed-off-by: Andy Adamson <andros@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs4proc.c

index 1bf291f03c619dd023cd17d47faefabbf568e218..c2fc5dd0a03c74c07dc2b8318424f49f5522b51a 100644 (file)
@@ -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,