summaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4client.c
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2013-04-04 16:14:11 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2013-04-04 17:01:25 -0400
commit23631227a672de5e81e167c3178b39e9a50f6541 (patch)
tree22333063da1ab734a056c8d951ac69b20cc859c5 /fs/nfs/nfs4client.c
parent4580a92d44e2b21c2254fa5fef0f1bfb43c82318 (diff)
downloadblackbird-obmc-linux-23631227a672de5e81e167c3178b39e9a50f6541.tar.gz
blackbird-obmc-linux-23631227a672de5e81e167c3178b39e9a50f6541.zip
NFSv4: Fix the fallback to AUTH_NULL if krb5i is not available
If the rpcsec_gss_krb5 module cannot be loaded, the attempt to create an rpc_client in nfs4_init_client will currently fail with an EINVAL. Fix is to retry with AUTH_NULL. Regression introduced by the commit "NFS: Use "krb5i" to establish NFSv4 state whenever possible" Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com> Cc: Chuck Lever <chuck.lever@oracle.com> Cc: Bryan Schumaker <bjschuma@netapp.com>
Diffstat (limited to 'fs/nfs/nfs4client.c')
-rw-r--r--fs/nfs/nfs4client.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfs/nfs4client.c b/fs/nfs/nfs4client.c
index bb9789ef1d49..a4f2100fd9c2 100644
--- a/fs/nfs/nfs4client.c
+++ b/fs/nfs/nfs4client.c
@@ -200,6 +200,8 @@ struct nfs_client *nfs4_init_client(struct nfs_client *clp,
__set_bit(NFS_CS_DISCRTRY, &clp->cl_flags);
error = nfs_create_rpc_client(clp, timeparms, RPC_AUTH_GSS_KRB5I);
+ if (error == -EINVAL)
+ error = nfs_create_rpc_client(clp, timeparms, RPC_AUTH_NULL);
if (error < 0)
goto error;
OpenPOWER on IntegriCloud