From: Samuel Thibault <samuel.thibault@ens-lyon.org>
To: Steven Rostedt <rostedt@goodmis.org>
Cc: Ingo Molnar <mingo@elte.hu>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Fix initialization of runqueues
Date: Thu, 3 Aug 2006 20:26:34 +0200 [thread overview]
Message-ID: <20060803182634.GD4368@implementation.labri.fr> (raw)
In-Reply-To: <1154617657.32264.14.camel@localhost.localdomain>
Steven Rostedt, le Thu 03 Aug 2006 11:07:37 -0400, a écrit :
> On Wed, 2006-08-02 at 18:57 +0200, Samuel Thibault wrote:
> > Ingo Molnar, le Wed 02 Aug 2006 17:24:19 +0200, a écrit :
> > >
> > > * Samuel Thibault <samuel.thibault@ens-lyon.org> wrote:
> > >
> > > > Hi,
> > > >
> > > > There's an odd thing about the nr_active field in arrays of
> > > > runqueue_t: it is actually never initialized to 0!... This doesn't
> > > > yet trigger a bug probably because the way runqueues are allocated
> > > > make it so that it is already initialized to 0, but that's not a safe
> > > > way. Here is a patch:
> > >
> > > we do rely on zero initialization of bss (and percpu) data in a number
> > > of places.
> >
> > The rest of runqueue initialization doesn't rely on that, and as
> > a result people might think that it is safe to allocate runqueues
> > dynamically.
>
> I don't buy the "safe to allocate runqueues dynamically" bit since they
> are local to sched.c and if you do do that (I did for a customer once)
> you better know what you're doing.
Yes, but as you agreed, initializing some members to 0 and not others
doesn't help to know what you're doing :)
Samuel
prev parent reply other threads:[~2006-08-03 18:26 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-02 12:27 [PATCH] Fix initialization of runqueues Samuel Thibault
2006-08-02 15:24 ` Ingo Molnar
2006-08-02 16:57 ` Samuel Thibault
2006-08-03 15:07 ` Steven Rostedt
2006-08-03 18:26 ` Samuel Thibault [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=20060803182634.GD4368@implementation.labri.fr \
--to=samuel.thibault@ens-lyon.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=rostedt@goodmis.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