Re: [PATCH] nfs4: v4 mounts should not need rpcbind running

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hey-

On Jun 3, 2011, at 10:11 AM, Steve Dickson wrote:

> 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 should no longer be the case.  The kernel uses connected transports to contact rpcbind these days, and should be able to tell immediately that there is no rpcbind running.  If there is still a hang, something else is wrong.

> This patch makes the nfs4 callback service a hide service
> by setting the vs_hidden flag in the nfs4_callback_version4
> structure

One reason to continue to do this is to have some assurance that no-one else takes the same RPC program number.  Not a big deal.

> Signed-off-by: Steve Dickson <steved@xxxxxxxxxx>
> ---
> 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,
> };

-- 
Chuck Lever
chuck[dot]lever[at]oracle[dot]com




--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux