From: Paul Jackson <pj@sgi.com>
To: "Rakib Mullick" <rakib.mullick@gmail.com>
Cc: menage@google.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Removes extra checking in kernel/cpuset.c
Date: Thu, 31 Jul 2008 11:15:22 -0500 [thread overview]
Message-ID: <20080731111522.6417f750.pj@sgi.com> (raw)
In-Reply-To: <b9df5fa10807310846g27913d82icf2a82e77992ba9f@mail.gmail.com>
Rakib wrote:
> Hello guys, this patch removes an extra checking over 'cs' in
> functions 'guarantee_online_cpus' and 'guarantee_online_mems'.
> ...
> - while (cs && !cpus_intersects(cs->cpus_allowed, cpu_online_map))
> - cs = cs->parent;
> - if (cs)
> + if (cs) {
> + while (!cpus_intersects(cs->cpus_allowed, cpu_online_map))
> + cs = cs->parent;
I don't think that works - "cs->parent" can be NULL, and will be NULL
if cs is the root cpuset.
So we must check for non-NULL cs each step of the way back up the
cpuset tree.
I must NAQ this patch.
Holler if you think I'm missing something.
--
I won't rest till it's the best ...
Programmer, Linux Scalability
Paul Jackson <pj@sgi.com> 1.940.382.4214
next prev parent reply other threads:[~2008-07-31 16:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-31 15:46 Rakib Mullick
2008-07-31 16:15 ` Paul Jackson [this message]
2008-07-31 17:09 ` Paul Menage
2008-07-31 19:13 ` Paul Jackson
[not found] <aVIzQ-Oh-23@gated-at.bofh.it>
2008-07-31 18:16 ` James Kosin
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=20080731111522.6417f750.pj@sgi.com \
--to=pj@sgi.com \
--cc=linux-kernel@vger.kernel.org \
--cc=menage@google.com \
--cc=rakib.mullick@gmail.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
all inboxes | Powered by JetHome®