Преглед изворни кода

nfs4: Make the v4 callback service hidden

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>
Steve Dickson пре 15 година
родитељ
комит
49697ee792
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      fs/nfs/callback_xdr.c

+ 1 - 0
fs/nfs/callback_xdr.c

@@ -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 = {