nfs: check if gssd is running before attempting to use krb5i auth in SETCLIENTID...
authorJeff Layton <jlayton@redhat.com>
Thu, 14 Nov 2013 12:25:19 +0000 (07:25 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 6 Dec 2013 18:06:32 +0000 (13:06 -0500)
commit6aa23d76a7b549521a03b63b6d5b7880ea87eab7
tree7fa6959fbe689b7aed830b562b06a7f5e1c5fd73
parent89f842435c630f8426f414e6030bc2ffea0d6f81
nfs: check if gssd is running before attempting to use krb5i auth in SETCLIENTID call

Currently, the client will attempt to use krb5i in the SETCLIENTID call
even if rpc.gssd isn't running. When that fails, it'll then fall back to
RPC_AUTH_UNIX. This introduced a delay when mounting if rpc.gssd isn't
running, and causes warning messages to pop up in the ring buffer.

Check to see if rpc.gssd is running before even attempting to use krb5i
auth, and just silently skip trying to do so if it isn't. In the event
that the admin is actually trying to mount with krb5*, it will still
fail at a later stage of the mount attempt.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs4client.c