From: Li Zefan <lizf@cn.fujitsu.com>
To: Mike Travis <travis@sgi.com>
Cc: Ingo Molnar <mingo@elte.hu>,
Rusty Russell <rusty@rustcorp.com.au>,
Peter Zijlstra <a.p.zijlstra@chello.nl>,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] sched: fix double kfree
Date: Wed, 07 Jan 2009 09:19:23 +0800 [thread overview]
Message-ID: <4964031B.6050401@cn.fujitsu.com> (raw)
In-Reply-To: <496392B0.5080700@sgi.com>
> Another thing I noticed but didn't deal with is:
>
> static int init_rootdomain(struct root_domain *rd, bool bootmem)
> {
> memset(rd, 0, sizeof(*rd));
>
> if (bootmem) {
> alloc_bootmem_cpumask_var(&def_root_domain.span);
> alloc_bootmem_cpumask_var(&def_root_domain.online);
> alloc_bootmem_cpumask_var(&def_root_domain.rto_mask);
> cpupri_init(&rd->cpupri, true);
> return 0;
> }
> if (!alloc_cpumask_var(&rd->span, GFP_KERNEL))
> ...
>
> Note that under the if (bootmem) case, it specifies the addresses
> directly instead of using (&rd->span) as the other alloc's do.
>
> Not a big deal, just an inconsistency.
>
I didn't notice this. :)
What makes it a bit worse is another inconsistency in if(bootmem), that rd
is used in cpupri_init() but def_root_domain is used in alloc()s.
prev parent reply other threads:[~2009-01-07 1:20 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-06 9:39 [PATCH] sched: fix double kfree Li Zefan
2009-01-06 9:50 ` Ingo Molnar
2009-01-06 9:50 ` Pekka Enberg
2009-01-06 10:07 ` Ingo Molnar
2009-01-06 10:08 ` Rusty Russell
2009-01-06 17:19 ` Mike Travis
2009-01-07 1:19 ` Li Zefan [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=4964031B.6050401@cn.fujitsu.com \
--to=lizf@cn.fujitsu.com \
--cc=a.p.zijlstra@chello.nl \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=rusty@rustcorp.com.au \
--cc=travis@sgi.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