* Re: [PATCH] kernel/sched.c - Use the task state macros provided in include/linux/sched.h
[not found] <Pine.LNX.4.44.0207202138430.17900-100000@localhost.localdomain>
@ 2002-07-20 21:26 ` Ryan Bradetich
0 siblings, 0 replies; 2+ messages in thread
From: Ryan Bradetich @ 2002-07-20 21:26 UTC (permalink / raw)
To: linux-kernel; +Cc: kernel-janitor-discuss, Ingo Molnar
Hello all,
I am working on a a kernel janitor project to use the task state
macros provided in the include/linux/sched.h instead of setting the
task state directly. Ingo suggested I bring the discussion to this
list to see if this janitor project is still valid, or the best way
to impliment this project.
The entire kernel janitor thread can be found here:
http://sourceforge.net/mailarchive/forum.php?thread_id=908916&forum_id=2314
Thanks,
- Ryan
On Sat, 2002-07-20 at 13:46, Ingo Molnar wrote:
>
> On 20 Jul 2002, Ryan Bradetich wrote:
>
> > Finally, since this is a janitor project, and I have only receieved
> > feedback from you, should I continue generating these patches and have
> > the maintainers reject the patches if they feel it makes the code less
> > clear? Or should I just abandon the project?
>
> Using the macro has one more advantage i did not consider: it shows that
> the maintainer has considered the SMP issues and has intentionally decided
> to use one of the two variants. So it's not just a simple wrapping of an
> assignment.
>
> > I guess what I would like to see is the task change state done fairly
> > consistently throught the kernel ... lots of places already use the
> > __set_[current_task]_state macros, while other set the state directly. I
> > also realize maintenance is more important then look/feel consistenance.
>
> in 2.5.26, 555 places use it directly, 128 places use the __set_*_state
> macros, 865 places use the SMP-safe set_*_state macros.
>
> perhaps it might make sense to raise the issue on the kernel-list?
>
> Ingo
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] kernel/sched.c - Use the task state macros provided in include/linux/sched.h
@ 2002-07-21 1:10 Ryan Bradetich
0 siblings, 0 replies; 2+ messages in thread
From: Ryan Bradetich @ 2002-07-21 1:10 UTC (permalink / raw)
To: linux-kernel; +Cc: kernel-janitor-discuss, mingo
Hello all,
I am working on a a kernel janitor project to use the task state
macros provided in the include/linux/sched.h instead of setting the
task state directly. Ingo suggested I bring the discussion to this
list to see if this janitor project is still valid, or the best way
to impliment this project.
The entire kernel janitor thread can be found here:
http://sourceforge.net/mailarchive/forum.php?thread_id=908916&forum_id=2314
Thanks,
- Ryan
On Sat, 2002-07-20 at 13:46, Ingo Molnar wrote:
>
> On 20 Jul 2002, Ryan Bradetich wrote:
>
> > Finally, since this is a janitor project, and I have only receieved
> > feedback from you, should I continue generating these patches and
have
> > the maintainers reject the patches if they feel it makes the code
less
> > clear? Or should I just abandon the project?
>
> Using the macro has one more advantage i did not consider: it shows
that
> the maintainer has considered the SMP issues and has intentionally
decided
> to use one of the two variants. So it's not just a simple wrapping of
an
> assignment.
>
> > I guess what I would like to see is the task change state done
fairly
> > consistently throught the kernel ... lots of places already use the
> > __set_[current_task]_state macros, while other set the state
directly. I
> > also realize maintenance is more important then look/feel
consistenance.
>
> in 2.5.26, 555 places use it directly, 128 places use the
__set_*_state
> macros, 865 places use the SMP-safe set_*_state macros.
>
> perhaps it might make sense to raise the issue on the kernel-list?
>
> Ingo
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-07-21 1:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <Pine.LNX.4.44.0207202138430.17900-100000@localhost.localdomain>
2002-07-20 21:26 ` [PATCH] kernel/sched.c - Use the task state macros provided in include/linux/sched.h Ryan Bradetich
2002-07-21 1:10 Ryan Bradetich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox