From: Steve Dickson <steved@redhat.com>
To: Linux NFS Mailing List <linux-nfs@vger.kernel.org>
Subject: [PATCH] nfs4: v4 mounts should not need rpcbind running
Date: Fri, 3 Jun 2011 10:11:30 -0400 [thread overview]
Message-ID: <1307110290-30672-1-git-send-email-steved@redhat.com> (raw)
When RPC services are created with svc_create() an
svc_unregister() is done to remove any stale registrations.
This unregister is not needed with the v4 callback
service and will cause the mount to hang if rpcbind
is not running.
This patch makes the nfs4 callback service a hide service
by setting the vs_hidden flag in the nfs4_callback_version4
structure
Signed-off-by: Steve Dickson <steved@redhat.com>
---
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 c6c86a7..7c8b800 100644
--- a/fs/nfs/callback_xdr.c
+++ b/fs/nfs/callback_xdr.c
@@ -996,4 +996,5 @@ struct svc_version nfs4_callback_version4 = {
.vs_proc = nfs4_callback_procedures1,
.vs_xdrsize = NFS4_CALLBACK_XDRSIZE,
.vs_dispatch = NULL,
+ .vs_hidden = 1,
};
--
1.7.4.4
next reply other threads:[~2011-06-03 14:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-03 14:11 Steve Dickson [this message]
2011-06-03 14:41 ` [PATCH] nfs4: v4 mounts should not need rpcbind running Chuck Lever
2011-06-03 15:13 ` Steve Dickson
2011-06-03 15:27 ` Chuck Lever
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1307110290-30672-1-git-send-email-steved@redhat.com \
--to=steved@redhat.com \
--cc=linux-nfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.