From: "J. Bruce Fields" <bfields@fieldses.org>
To: Chuck Lever <chuck.lever@oracle.com>
Cc: linux-nfs@vger.kernel.org
Subject: Re: [PATCH 04/14] NSM: Move NSM-related function and variable declarations to lockd.h
Date: Wed, 29 Oct 2008 16:02:51 -0400 [thread overview]
Message-ID: <20081029200251.GC1406@fieldses.org> (raw)
In-Reply-To: <20081024181016.23810.69413.stgit-07a7zB5ZJzbwdl/1UfZZQIVfYA8g3rJ/@public.gmane.org>
On Fri, Oct 24, 2008 at 02:10:17PM -0400, Chuck Lever wrote:
> Clean up: Keep the NSM function declarations together with the
> declarations already in lockd.h, and modernize the documenting
> comments.
Do the kerneldoc comments actually currently get processed? (E.g. does
'make htmldocs' do anything with them?) If not, should we fix that? If
so, do they produce anything useful?
--b.
>
> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
> ---
>
> fs/lockd/mon.c | 18 ++++++++++--------
> include/linux/lockd/lockd.h | 4 ++++
> include/linux/lockd/sm_inter.h | 4 ----
> 3 files changed, 14 insertions(+), 12 deletions(-)
>
> diff --git a/fs/lockd/mon.c b/fs/lockd/mon.c
> index 1c058b1..d48ae14 100644
> --- a/fs/lockd/mon.c
> +++ b/fs/lockd/mon.c
> @@ -159,11 +159,12 @@ void nsm_release(struct nsm_handle *nsm)
> }
> }
>
> -/*
> - * Set up monitoring of a remote host
> +/**
> + * nsm_monitor - Set up monitoring of a remote host
> + * @host: pointer to nlm_host representing remote peer to monitor
> + *
> */
> -int
> -nsm_monitor(struct nlm_host *host)
> +int nsm_monitor(struct nlm_host *host)
> {
> struct nsm_handle *nsm = host->h_nsmhandle;
> struct nsm_res res;
> @@ -184,11 +185,12 @@ nsm_monitor(struct nlm_host *host)
> return status;
> }
>
> -/*
> - * Cease to monitor remote host
> +/**
> + * nsm_unmonitor - Cease to monitor remote host
> + * @host: pointer to nlm_host representing remote peer to stop monitoring
> + *
> */
> -int
> -nsm_unmonitor(struct nlm_host *host)
> +int nsm_unmonitor(struct nlm_host *host)
> {
> struct nsm_handle *nsm = host->h_nsmhandle;
> struct nsm_res res;
> diff --git a/include/linux/lockd/lockd.h b/include/linux/lockd/lockd.h
> index a45be5d..6dc1043 100644
> --- a/include/linux/lockd/lockd.h
> +++ b/include/linux/lockd/lockd.h
> @@ -200,7 +200,9 @@ extern struct svc_procedure nlmsvc_procedures4[];
> #endif
> extern int nlmsvc_grace_period;
> extern unsigned long nlmsvc_timeout;
> +
> extern int nsm_use_hostnames;
> +extern int nsm_local_state;
>
> /*
> * Lockd client functions
> @@ -247,6 +249,8 @@ struct nsm_handle *nsm_find(const struct sockaddr *sap, const size_t salen,
> const size_t hostname_len,
> const int create);
> void nsm_release(struct nsm_handle *nsm);
> +int nsm_monitor(struct nlm_host *host);
> +int nsm_unmonitor(struct nlm_host *host);
>
> /*
> * This is used in garbage collection and resource reclaim
> diff --git a/include/linux/lockd/sm_inter.h b/include/linux/lockd/sm_inter.h
> index 5a5448b..f75d3ea 100644
> --- a/include/linux/lockd/sm_inter.h
> +++ b/include/linux/lockd/sm_inter.h
> @@ -41,8 +41,4 @@ struct nsm_res {
> u32 state;
> };
>
> -int nsm_monitor(struct nlm_host *);
> -int nsm_unmonitor(struct nlm_host *);
> -extern int nsm_local_state;
> -
> #endif /* LINUX_LOCKD_SM_INTER_H */
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2008-10-29 20:02 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-24 18:09 [PATCH 00/14] RFC: IPv6 support for kernel NSM Chuck Lever
[not found] ` <20081024180150.23810.9718.stgit-07a7zB5ZJzbwdl/1UfZZQIVfYA8g3rJ/@public.gmane.org>
2008-10-24 18:09 ` [PATCH 01/14] NLM: Beef up NLM address display function Chuck Lever
[not found] ` <20081024180954.23810.34150.stgit-07a7zB5ZJzbwdl/1UfZZQIVfYA8g3rJ/@public.gmane.org>
2008-10-29 19:25 ` J. Bruce Fields
2008-10-29 20:05 ` Chuck Lever
2008-10-24 18:10 ` [PATCH 02/14] NSM: Move nsm_find() to fs/lockd/mon.c Chuck Lever
2008-10-24 18:10 ` [PATCH 03/14] NSM: Support IPv6 version of mon_name Chuck Lever
[not found] ` <20081024181009.23810.56793.stgit-07a7zB5ZJzbwdl/1UfZZQIVfYA8g3rJ/@public.gmane.org>
2008-10-29 20:00 ` J. Bruce Fields
2008-10-29 20:22 ` Chuck Lever
2008-10-24 18:10 ` [PATCH 04/14] NSM: Move NSM-related function and variable declarations to lockd.h Chuck Lever
[not found] ` <20081024181016.23810.69413.stgit-07a7zB5ZJzbwdl/1UfZZQIVfYA8g3rJ/@public.gmane.org>
2008-10-29 20:02 ` J. Bruce Fields [this message]
2008-10-24 18:10 ` [PATCH 05/14] NSM: Move NSM-related XDR data structures to lockd's xdr.h Chuck Lever
2008-10-24 18:10 ` [PATCH 06/14] NSM: Move NSM program and procedure numbers to fs/lockd/mon.c Chuck Lever
2008-10-24 18:10 ` [PATCH 07/14] NSM: Generate "priv" argument when nsm_handle is created Chuck Lever
2008-10-24 18:10 ` [PATCH 08/14] NLM: Change nlm_host_rebooted() to take a single nlm_reboot argument Chuck Lever
2008-10-24 18:10 ` [PATCH 09/14] NLM: Decode "priv" argument of NLM_SM_NOTIFY as an opaque Chuck Lever
2008-10-24 18:11 ` [PATCH 10/14] NSM: Add nsm_lookup() function Chuck Lever
2008-10-24 18:11 ` [PATCH 11/14] NSM: Replace IP address as our nlm_reboot lookup key Chuck Lever
2008-10-24 18:11 ` [PATCH 12/14] NSM: Remove include/linux/lockd/sm_inter.h Chuck Lever
2008-10-24 18:11 ` [PATCH 13/14] NLM: Remove "create" argument from nsm_find() Chuck Lever
[not found] ` <20081024181123.23810.65076.stgit-07a7zB5ZJzbwdl/1UfZZQIVfYA8g3rJ/@public.gmane.org>
2008-10-29 20:48 ` J. Bruce Fields
2008-10-24 18:11 ` [PATCH 14/14] NSM: Use same helpers in nsm_get_handle() and nsm_lookup_rebooted() 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=20081029200251.GC1406@fieldses.org \
--to=bfields@fieldses.org \
--cc=chuck.lever@oracle.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox