SUNRPC: parametrize rpc_pton() by network context
[firefly-linux-kernel-4.4.55.git] / fs / nfsd / nfs4callback.c
index 7748d6a18d9746b480745ba0313002a7d72b10ad..426ccb1716509ac954393d79f2bc5e85dc1072eb 100644 (file)
@@ -622,7 +622,7 @@ static struct rpc_program cb_program = {
        .nrvers                 = ARRAY_SIZE(nfs_cb_version),
        .version                = nfs_cb_version,
        .stats                  = &cb_stats,
-       .pipe_dir_name          = "/nfsd4_cb",
+       .pipe_dir_name          = "nfsd4_cb",
 };
 
 static int max_cb_time(void)
@@ -718,7 +718,7 @@ int set_callback_cred(void)
 {
        if (callback_cred)
                return 0;
-       callback_cred = rpc_lookup_machine_cred();
+       callback_cred = rpc_lookup_machine_cred("nfs");
        if (!callback_cred)
                return -ENOMEM;
        return 0;