public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Cliff Wickman <cpw@sgi.com>
To: Ingo Molnar <mingo@elte.hu>
Cc: Roel Kluin <roel.kluin@gmail.com>, Robin Holt <holt@sgi.com>,
	Mike Travis <travis@sgi.com>, Ingo Molnar <mingo@redhat.com>,
	x86@kernel.org, Andrew Morton <akpm@linux-foundation.org>,
	LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] x86: bau_msg_head points to a_queue_first in uv_table_bases_finish()
Date: Mon, 18 Jan 2010 07:35:04 -0600	[thread overview]
Message-ID: <20100118133504.GA11428@sgi.com> (raw)
In-Reply-To: <20100117071227.GC19512@elte.hu>

Hi Ingo,

On Sun, Jan 17, 2010 at 08:12:27AM +0100, Ingo Molnar wrote:
> 
> * Roel Kluin <roel.kluin@gmail.com> wrote:
> 
> > bau_msg_head should point to bau_msg_head
> > 
> > Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
> > ---
> > Is this correct?
> > 
> > diff --git a/arch/x86/kernel/tlb_uv.c b/arch/x86/kernel/tlb_uv.c
> > index 364d015..3d66331 100644
> > --- a/arch/x86/kernel/tlb_uv.c
> > +++ b/arch/x86/kernel/tlb_uv.c
> > @@ -691,7 +691,7 @@ uv_table_bases_finish(int blade,
> >  			continue;
> >  
> >  		bcp = (struct bau_control *)&per_cpu(bau_control, cpu);
> > -		bcp->bau_msg_head	= bau_tablesp->va_queue_first;
> > +		bcp->bau_msg_head	= bau_tablesp->bau_msg_head;
> >  		bcp->va_queue_first	= bau_tablesp->va_queue_first;
> >  		bcp->va_queue_last	= bau_tablesp->va_queue_last;
> >  		bcp->msg_statuses	= bau_tablesp->msg_statuses;
> 
> Seems like you either caught a real bug - or that there's a somewhat quirky 
> initialization sequence here which should be commented upon in the source.
> 
> Cliff, Robin, what's your take on Roel's patch?
> 
> Thanks,
> 
> 	Ingo

The bau_tablesp->bau_msg_head doesn't seem to be initialized, so do not
change the code this way.

bcp->bau_msg_head is correctly initialized to the head of the queue as
it stands.

However I do agree that it is confusing, as there are redundant control
structures, and needs improvement.  I intend to submit a new version
of tlb_uv.c soon.

-Cliff

-- 
Cliff Wickman
SGI
cpw@sgi.com
(651) 683-3824

      parent reply	other threads:[~2010-01-18 13:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-15 13:41 [PATCH] x86: bau_msg_head points to a_queue_first in uv_table_bases_finish() Roel Kluin
2010-01-17  7:12 ` Ingo Molnar
2010-01-17 12:53   ` Robin Holt
2010-01-18 13:35   ` Cliff Wickman [this message]

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=20100118133504.GA11428@sgi.com \
    --to=cpw@sgi.com \
    --cc=akpm@linux-foundation.org \
    --cc=holt@sgi.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=mingo@redhat.com \
    --cc=roel.kluin@gmail.com \
    --cc=travis@sgi.com \
    --cc=x86@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