nfs4: Make the v4 callback service hidden
authorSteve Dickson <SteveD@redhat.com>
Tue, 13 Oct 2009 20:07:33 +0000 (16:07 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 8 Mar 2010 19:56:42 +0000 (14:56 -0500)
To avoid hangs in the svc_unregister(), on version 4 mounts
(and unmounts), when rpcbind is not running, make the nfs4 callback
program an 'hidden' service by setting the 'vs_hidden' flag in the
nfs4_callback_version structure.

Signed-off-by: Steve Dickson <steved@redhat.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/callback_xdr.c

index db30c0b..a2b8b4d 100644 (file)
@@ -782,6 +782,7 @@ struct svc_version nfs4_callback_version1 = {
        .vs_proc = nfs4_callback_procedures1,
        .vs_xdrsize = NFS4_CALLBACK_XDRSIZE,
        .vs_dispatch = NULL,
+       .vs_hidden = 1,
 };
 
 struct svc_version nfs4_callback_version4 = {