Linux NFS development
 help / color / mirror / Atom feed
From: "J. Bruce Fields" <bfields@fieldses.org>
To: Chuck Lever <chuck.lever@oracle.com>
Cc: trond.myklebust@netapp.com, linux-nfs@vger.kernel.org
Subject: Re: [PATCH 2/6] NLM: Clean up before introducing new debugging messages
Date: Thu, 11 Sep 2008 17:45:43 -0400	[thread overview]
Message-ID: <20080911214543.GA24459@fieldses.org> (raw)
In-Reply-To: <20080911214225.GD17355@fieldses.org>

On Thu, Sep 11, 2008 at 05:42:25PM -0400, bfields wrote:
> On Wed, Aug 27, 2008 at 04:57:15PM -0400, Chuck Lever wrote:
> > We're about to introduce some extra debugging messages in nlm_lookup_host().
> > Bring the coding style up to date first so we can cleanly introduce the new
> > debugging messages.
> 
> Looks fine to me.--b.

Whoops, sorry, ignore me, I was starting to run through patches I've
already applied....--b.

> 
> > 
> > Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
> > ---
> > 
> >  fs/lockd/host.c |   19 +++++++++++--------
> >  1 files changed, 11 insertions(+), 8 deletions(-)
> > 
> > diff --git a/fs/lockd/host.c b/fs/lockd/host.c
> > index a17664c..cb26e3d 100644
> > --- a/fs/lockd/host.c
> > +++ b/fs/lockd/host.c
> > @@ -103,16 +103,19 @@ static struct nlm_host *nlm_lookup_host(int server,
> >  		nlm_get_host(host);
> >  		goto out;
> >  	}
> > -	if (nsm)
> > -		atomic_inc(&nsm->sm_count);
> > -
> > -	host = NULL;
> >  
> > -	/* Sadly, the host isn't in our hash table yet. See if
> > -	 * we have an NSM handle for it. If not, create one.
> > +	/*
> > +	 * The host wasn't in our hash table.  If we don't
> > +	 * have an NSM handle for it yet, create one.
> >  	 */
> > -	if (!nsm && !(nsm = nsm_find(sin, hostname, hostname_len)))
> > -		goto out;
> > +	if (nsm)
> > +		atomic_inc(&nsm->sm_count);
> > +	else {
> > +		host = NULL;
> > +		nsm = nsm_find(sin, hostname, hostname_len);
> > +		if (!nsm)
> > +			goto out;
> > +	}
> >  
> >  	host = kzalloc(sizeof(*host), GFP_KERNEL);
> >  	if (!host) {
> > 

  reply	other threads:[~2008-09-11 21:45 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-27 20:56 [PATCH 0/6] 2nd IPv6 patchset for 2.6.28 (repost) Chuck Lever
     [not found] ` <20080827204852.17837.38361.stgit-meopP2rzCrTwdl/1UfZZQIVfYA8g3rJ/@public.gmane.org>
2008-08-27 20:57   ` [PATCH 1/6] NFS: Enable NFSv4 callback server to listen on AF_INET6 sockets Chuck Lever
     [not found]     ` <20080827205706.17837.28843.stgit-meopP2rzCrTwdl/1UfZZQIVfYA8g3rJ/@public.gmane.org>
2008-09-11 21:41       ` J. Bruce Fields
2008-08-27 20:57   ` [PATCH 2/6] NLM: Clean up before introducing new debugging messages Chuck Lever
     [not found]     ` <20080827205714.17837.95227.stgit-meopP2rzCrTwdl/1UfZZQIVfYA8g3rJ/@public.gmane.org>
2008-09-11 21:42       ` J. Bruce Fields
2008-09-11 21:45         ` J. Bruce Fields [this message]
2008-08-27 20:57   ` [PATCH 3/6] lockd: address-family independent printable addresses Chuck Lever
2008-08-27 20:57   ` [PATCH 4/6] lockd: Specify address family for source address Chuck Lever
2008-08-27 20:57   ` [PATCH 5/6] lockd: Add address family-agnostic helper for zeroing the port number Chuck Lever
2008-08-27 20:57   ` [PATCH 6/6] SUNRPC: Make svc_addr's argument a constant Chuck Lever
2008-08-29 17:25   ` [PATCH 0/6] 2nd IPv6 patchset for 2.6.28 (repost) J. Bruce Fields
2008-08-29 17:25     ` J. Bruce Fields
2008-08-29 17:29       ` 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=20080911214543.GA24459@fieldses.org \
    --to=bfields@fieldses.org \
    --cc=chuck.lever@oracle.com \
    --cc=linux-nfs@vger.kernel.org \
    --cc=trond.myklebust@netapp.com \
    /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