diff options
author | Steve Dickson <SteveD@redhat.com> | 2009-10-13 16:07:33 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2010-03-08 14:56:42 -0500 |
commit | 49697ee79242d5f8ac88f1ebc62e583d16bcc687 (patch) | |
tree | 9b607ce2c3c6a4d874f201b534b13038983af28e | |
parent | 7dd08a570dcf45d52155996fee688405635ee481 (diff) |
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>
-rw-r--r-- | fs/nfs/callback_xdr.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfs/callback_xdr.c b/fs/nfs/callback_xdr.c index db30c0b398b5..a2b8b4df125d 100644 --- a/fs/nfs/callback_xdr.c +++ b/fs/nfs/callback_xdr.c | |||
@@ -782,6 +782,7 @@ struct svc_version nfs4_callback_version1 = { | |||
782 | .vs_proc = nfs4_callback_procedures1, | 782 | .vs_proc = nfs4_callback_procedures1, |
783 | .vs_xdrsize = NFS4_CALLBACK_XDRSIZE, | 783 | .vs_xdrsize = NFS4_CALLBACK_XDRSIZE, |
784 | .vs_dispatch = NULL, | 784 | .vs_dispatch = NULL, |
785 | .vs_hidden = 1, | ||
785 | }; | 786 | }; |
786 | 787 | ||
787 | struct svc_version nfs4_callback_version4 = { | 788 | struct svc_version nfs4_callback_version4 = { |