NFSv4.1 Use clientid management rpc_clnt for secinfo_no_name
[linux-2.6-block.git] / fs / nfs / nfs4proc.c
index f81dcec6fdfe3567f5a8b83d1b31ebb46e5677ab..f50ad28689e4dc63d47763b3c1bc323205905cab 100644 (file)
@@ -7090,6 +7090,10 @@ out:
        return status;
 }
 
+/**
+ * Use the state managment nfs_client cl_rpcclient, which uses krb5i (if
+ * possible) as per RFC3530bis and RFC5661 Security Considerations sections
+ */
 static int
 _nfs41_proc_secinfo_no_name(struct nfs_server *server, struct nfs_fh *fhandle,
                    struct nfs_fsinfo *info, struct nfs4_secinfo_flavors *flavors)
@@ -7105,7 +7109,8 @@ _nfs41_proc_secinfo_no_name(struct nfs_server *server, struct nfs_fh *fhandle,
                .rpc_argp = &args,
                .rpc_resp = &res,
        };
-       return nfs4_call_sync(server->client, server, &msg, &args.seq_args, &res.seq_res, 0);
+       return nfs4_call_sync(server->nfs_client->cl_rpcclient, server, &msg,
+                               &args.seq_args, &res.seq_res, 0);
 }
 
 static int