|
@@ -10,6 +10,7 @@
|
|
|
#include <linux/sunrpc/auth.h>
|
|
|
#include <linux/sunrpc/xprt.h>
|
|
|
#include <linux/sunrpc/bc_xprt.h>
|
|
|
+#include <linux/sunrpc/rpc_pipe_fs.h>
|
|
|
#include "internal.h"
|
|
|
#include "callback.h"
|
|
|
#include "delegation.h"
|
|
@@ -370,7 +371,11 @@ struct nfs_client *nfs4_init_client(struct nfs_client *clp,
|
|
|
__set_bit(NFS_CS_INFINITE_SLOTS, &clp->cl_flags);
|
|
|
__set_bit(NFS_CS_DISCRTRY, &clp->cl_flags);
|
|
|
__set_bit(NFS_CS_NO_RETRANS_TIMEOUT, &clp->cl_flags);
|
|
|
- error = nfs_create_rpc_client(clp, timeparms, RPC_AUTH_GSS_KRB5I);
|
|
|
+
|
|
|
+ error = -EINVAL;
|
|
|
+ if (gssd_running(clp->cl_net))
|
|
|
+ error = nfs_create_rpc_client(clp, timeparms,
|
|
|
+ RPC_AUTH_GSS_KRB5I);
|
|
|
if (error == -EINVAL)
|
|
|
error = nfs_create_rpc_client(clp, timeparms, RPC_AUTH_UNIX);
|
|
|
if (error < 0)
|