From: Tejun Heo <tj@kernel.org>
To: Martin Steigerwald <martin.steigerwald@teamix.de>
Cc: Peter Zijlstra <peterz@infradead.org>,
Ingo Molnar <mingo@kernel.org>, Andrew Morton <akpm@osdl.org>,
Ingo Molnar <mingo@elte.hu>, LKML <linux-kernel@vger.kernel.org>,
Nicolas Dichtel <nicolas.dichtel@6wind.com>,
Jay Lan <jlan@engr.sgi.com>,
Martin Steigerwald <martin@lichtvoll.de>,
Gerlof Langeveld <gerlof.langeveld@atoptool.nl>,
Marc Haber <mh+debian-packages@zugschlus.de>,
Ben Hutchings <ben@decadent.org.uk>,
Balbir Singh <bsingharora@gmail.com>
Subject: Re: [REGRESSION] Two issues that prevent process accounting (taskstats) from working correctly
Date: Mon, 6 Feb 2017 11:20:27 -0500 [thread overview]
Message-ID: <20170206162027.GA31078@htj.duckdns.org> (raw)
In-Reply-To: <5854646.yRl4qIL1ZN@merkaba>
Hello,
On Mon, Feb 06, 2017 at 11:39:04AM +0100, Martin Steigerwald wrote:
> > Ben Hutchings reports:
> >
> > "It looks like the taskstats bug was introduced by 513e3d2d11c9 as that
> > means cpumask_parse() may not initialise as many bits as
> > cpumask_subset() compares"
I see, so that patch switched parsing and printing to always use
nr_cpu_ids but left the comparison functions to keep using
nr_cpumask_bits which may be NR_CPUS instead of nr_cpu_ids.
> Okay, any conclusion out of this? Any feedback from the maintainers of this
> code?
We can switch back the parse functions to nr_cpumask_bits, or just get
rid of nr_cpumask_bits and use nr_cpu_ids everywhere. The only reason
we use nr_cpumask_bits is because on small configurations the constant
NR_CPUS can be more efficient than having to read out nr_cpu_ids
variable each time.
Hmm... I'll restore the parse functions to use nr_cpumask_bits instead
for now. The confusing part was the output results. Input should be
okay even if we flip between nr_cpu_ids and NR_CPUS.
Thanks.
--
tejun
next prev parent reply other threads:[~2017-02-06 16:20 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-19 12:06 [REGRESSION] Two issues that prevent process accounting (taskstats) from working correctly Martin Steigerwald
2016-12-19 13:19 ` Peter Zijlstra
2016-12-19 13:50 ` Martin Steigerwald
2016-12-19 14:02 ` Peter Zijlstra
2016-12-19 17:25 ` Peter Zijlstra
2017-02-06 10:39 ` Martin Steigerwald
2017-02-06 16:20 ` Tejun Heo [this message]
2017-02-06 18:24 ` [PATCH] cpumask: use nr_cpumask_bits for parsing functions Tejun Heo
-- strict thread matches above, loose matches on Subject: below --
2017-02-10 21:56 [REGRESSION] Two issues that prevent process accounting (taskstats) from working correctly Dmitry Romanov
2017-02-12 15:44 ` Dmitry Romanov
2017-03-08 11:14 ` Richard Genoud
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=20170206162027.GA31078@htj.duckdns.org \
--to=tj@kernel.org \
--cc=akpm@osdl.org \
--cc=ben@decadent.org.uk \
--cc=bsingharora@gmail.com \
--cc=gerlof.langeveld@atoptool.nl \
--cc=jlan@engr.sgi.com \
--cc=linux-kernel@vger.kernel.org \
--cc=martin.steigerwald@teamix.de \
--cc=martin@lichtvoll.de \
--cc=mh+debian-packages@zugschlus.de \
--cc=mingo@elte.hu \
--cc=mingo@kernel.org \
--cc=nicolas.dichtel@6wind.com \
--cc=peterz@infradead.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