* [PATCH 2/2] cpuset: use seq_cpumask(), seq_nodemask()
@ 2008-08-02 11:31 Alexey Dobriyan
2008-08-02 14:05 ` Paul Jackson
0 siblings, 1 reply; 5+ messages in thread
From: Alexey Dobriyan @ 2008-08-02 11:31 UTC (permalink / raw)
To: akpm; +Cc: linux-kernel, pj
Folks might want to boot with NR_CPUS=4096 and see what happens,
m->count games don't look promising. :-)
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---
kernel/cpuset.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
--- a/kernel/cpuset.c
+++ b/kernel/cpuset.c
@@ -2392,16 +2392,14 @@ const struct file_operations proc_cpuset_operations = {
void cpuset_task_status_allowed(struct seq_file *m, struct task_struct *task)
{
seq_printf(m, "Cpus_allowed:\t");
- m->count += cpumask_scnprintf(m->buf + m->count, m->size - m->count,
- task->cpus_allowed);
+ seq_cpumask(m, &task->cpus_allowed);
seq_printf(m, "\n");
seq_printf(m, "Cpus_allowed_list:\t");
m->count += cpulist_scnprintf(m->buf + m->count, m->size - m->count,
task->cpus_allowed);
seq_printf(m, "\n");
seq_printf(m, "Mems_allowed:\t");
- m->count += nodemask_scnprintf(m->buf + m->count, m->size - m->count,
- task->mems_allowed);
+ seq_nodemask(m, &task->mems_allowed);
seq_printf(m, "\n");
seq_printf(m, "Mems_allowed_list:\t");
m->count += nodelist_scnprintf(m->buf + m->count, m->size - m->count,
--
1.5.3.7
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 2/2] cpuset: use seq_cpumask(), seq_nodemask()
2008-08-02 11:31 [PATCH 2/2] cpuset: use seq_cpumask(), seq_nodemask() Alexey Dobriyan
@ 2008-08-02 14:05 ` Paul Jackson
2008-08-02 14:28 ` Alexey Dobriyan
0 siblings, 1 reply; 5+ messages in thread
From: Paul Jackson @ 2008-08-02 14:05 UTC (permalink / raw)
To: Alexey Dobriyan; +Cc: akpm, linux-kernel, Mike Travis
Alexey wrote:
> Folks might want to boot with NR_CPUS=4096 and see what happens,
> m->count games don't look promising. :-)
That comment is rather heavily dependent on the context of both:
1) the previous patch comment, and
2) booting and seeing.
Could you rewrite it, so that it doesn't depend on such context,
and can be read and understood, by itself?
--
I won't rest till it's the best ...
Programmer, Linux Scalability
Paul Jackson <pj@sgi.com> 1.940.382.4214
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 2/2] cpuset: use seq_cpumask(), seq_nodemask()
2008-08-02 14:05 ` Paul Jackson
@ 2008-08-02 14:28 ` Alexey Dobriyan
2008-08-02 16:53 ` Paul Jackson
2008-08-04 23:41 ` Andrew Morton
0 siblings, 2 replies; 5+ messages in thread
From: Alexey Dobriyan @ 2008-08-02 14:28 UTC (permalink / raw)
To: Paul Jackson; +Cc: akpm, linux-kernel, Mike Travis
On Sat, Aug 02, 2008 at 09:05:42AM -0500, Paul Jackson wrote:
> Alexey wrote:
> > Folks might want to boot with NR_CPUS=4096 and see what happens,
> > m->count games don't look promising. :-)
>
> That comment is rather heavily dependent on the context of both:
> 1) the previous patch comment, and
> 2) booting and seeing.
>
> Could you rewrite it, so that it doesn't depend on such context,
> and can be read and understood, by itself?
That's just a reminder to cpuset people whether /proc/*/status broken or
not. Can be safely deleted. :-)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 2/2] cpuset: use seq_cpumask(), seq_nodemask()
2008-08-02 14:28 ` Alexey Dobriyan
@ 2008-08-02 16:53 ` Paul Jackson
2008-08-04 23:41 ` Andrew Morton
1 sibling, 0 replies; 5+ messages in thread
From: Paul Jackson @ 2008-08-02 16:53 UTC (permalink / raw)
To: Alexey Dobriyan; +Cc: akpm, linux-kernel, travis
Alexey wrote:
> That's just a reminder to cpuset people whether /proc/*/status broken or
> not. Can be safely deleted. :-)
What can be safely deleted - the patch, or the comment of the patch?
I'm confused.
--
I won't rest till it's the best ...
Programmer, Linux Scalability
Paul Jackson <pj@sgi.com> 1.940.382.4214
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 2/2] cpuset: use seq_cpumask(), seq_nodemask()
2008-08-02 14:28 ` Alexey Dobriyan
2008-08-02 16:53 ` Paul Jackson
@ 2008-08-04 23:41 ` Andrew Morton
1 sibling, 0 replies; 5+ messages in thread
From: Andrew Morton @ 2008-08-04 23:41 UTC (permalink / raw)
To: Alexey Dobriyan; +Cc: Paul Jackson, akpm, linux-kernel, Mike Travis
On Sat, 2 Aug 2008 18:28:38 +0400 Alexey Dobriyan <adobriyan@gmail.com> wrote:
> On Sat, Aug 02, 2008 at 09:05:42AM -0500, Paul Jackson wrote:
> > Alexey wrote:
> > > Folks might want to boot with NR_CPUS=4096 and see what happens,
> > > m->count games don't look promising. :-)
> >
> > That comment is rather heavily dependent on the context of both:
> > 1) the previous patch comment, and
> > 2) booting and seeing.
> >
> > Could you rewrite it, so that it doesn't depend on such context,
> > and can be read and understood, by itself?
I agree with Paul. That changelog was useless, sorry.
> That's just a reminder to cpuset people whether /proc/*/status broken or
> not. Can be safely deleted. :-)
Deleting the changelog won't make it clearer (unlike some changelogs
which I've seen ;))
Please send a usable changleog for this patch, thanks.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-08-04 23:41 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-02 11:31 [PATCH 2/2] cpuset: use seq_cpumask(), seq_nodemask() Alexey Dobriyan
2008-08-02 14:05 ` Paul Jackson
2008-08-02 14:28 ` Alexey Dobriyan
2008-08-02 16:53 ` Paul Jackson
2008-08-04 23:41 ` Andrew Morton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox