* RE: [PATCH] unneeded memory barrier
@ 2003-09-11 20:56 Grover, Andrew
[not found] ` <F760B14C9561B941B89469F59BA3A8470255EF0F-sBd4vmA9Se4Lll3ZsUKC9FDQ4js95KgL@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Grover, Andrew @ 2003-09-11 20:56 UTC (permalink / raw)
To: Felipe W Damasio, mochel-3NddpPZAyC0
Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
> From: Felipe W Damasio [mailto:felipewd-y7mWNqJcIDpfJ/NunPodnw@public.gmane.org]
> Patch against 2.6-test5 to remove an, IMHO, unneeded
> memory barrier
> on acpi/bus.c. Feel free to tell me I'm totally wrong, though :)
>
> If it looks good, please consider applying.
- set_current_state(TASK_RUNNING);
+ __set_current_state(TASK_RUNNING);
My understanding of functions starting with __ was "use them but you
better know what you're doing". This patch may be technically correct
but does the unneeded barrier really hurt anything? If not then I think
the regular version is ok.
Regards -- Andy
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
^ permalink raw reply [flat|nested] 4+ messages in thread[parent not found: <F760B14C9561B941B89469F59BA3A8470255EF0F-sBd4vmA9Se4Lll3ZsUKC9FDQ4js95KgL@public.gmane.org>]
* Re: [PATCH] unneeded memory barrier [not found] ` <F760B14C9561B941B89469F59BA3A8470255EF0F-sBd4vmA9Se4Lll3ZsUKC9FDQ4js95KgL@public.gmane.org> @ 2003-09-11 21:34 ` Felipe W Damasio [not found] ` <3F60EA55.90008-y7mWNqJcIDpfJ/NunPodnw@public.gmane.org> 0 siblings, 1 reply; 4+ messages in thread From: Felipe W Damasio @ 2003-09-11 21:34 UTC (permalink / raw) To: Grover, Andrew Cc: mochel-3NddpPZAyC0, acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f Hi Andy, First of all, thanks for your review. Grover, Andrew wrote: >>From: Felipe W Damasio [mailto:felipewd-y7mWNqJcIDpfJ/NunPodnw@public.gmane.org] >> Patch against 2.6-test5 to remove an, IMHO, unneeded >>memory barrier >>on acpi/bus.c. Feel free to tell me I'm totally wrong, though :) >> >> If it looks good, please consider applying. > > > - set_current_state(TASK_RUNNING); > + __set_current_state(TASK_RUNNING); > > My understanding of functions starting with __ was "use them but you > better know what you're doing". This patch may be technically correct > but does the unneeded barrier really hurt anything? If not then I think > the regular version is ok. I don't think it hurts in terms of "enforcing ordering too much", but that barrier isn't needed at all since it sets the state to TASK_RUNNING... But hey, it's not my driver to decide :) Thanks anyway, Felipe ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <3F60EA55.90008-y7mWNqJcIDpfJ/NunPodnw@public.gmane.org>]
* Re: Re: [PATCH] unneeded memory barrier [not found] ` <3F60EA55.90008-y7mWNqJcIDpfJ/NunPodnw@public.gmane.org> @ 2003-09-12 11:12 ` Pavel Machek 0 siblings, 0 replies; 4+ messages in thread From: Pavel Machek @ 2003-09-12 11:12 UTC (permalink / raw) To: Felipe W Damasio Cc: Grover, Andrew, mochel-3NddpPZAyC0, acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f Hi! > >> Patch against 2.6-test5 to remove an, IMHO, unneeded > >>memory barrier > >>on acpi/bus.c. Feel free to tell me I'm totally wrong, though :) > >> > >> If it looks good, please consider applying. > > > > > >- set_current_state(TASK_RUNNING); > >+ __set_current_state(TASK_RUNNING); > > > >My understanding of functions starting with __ was "use them but you > >better know what you're doing". This patch may be technically correct > >but does the unneeded barrier really hurt anything? If not then I > >think > >the regular version is ok. > > I don't think it hurts in terms of "enforcing ordering too > much", but that barrier isn't needed at all since it sets the state > to TASK_RUNNING... If setting to TASK_RUNNING never requires barier, I guess some __builtin_constant and ==TASK_RUNNING check in set_task_state is better idea. -- Pavel Written on sharp zaurus, because my Velo1 broke. If you have Velo you don't need... ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] unneeded memory barrier @ 2003-09-11 20:31 Felipe W Damasio 0 siblings, 0 replies; 4+ messages in thread From: Felipe W Damasio @ 2003-09-11 20:31 UTC (permalink / raw) To: mochel-3NddpPZAyC0, andrew.grover-ral2JQCrhuEAvxtiuMwx3w Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f [-- Attachment #1: Type: text/plain, Size: 220 bytes --] Hi Andrew/Patrick, Patch against 2.6-test5 to remove an, IMHO, unneeded memory barrier on acpi/bus.c. Feel free to tell me I'm totally wrong, though :) If it looks good, please consider applying. Cheers, Felipe [-- Attachment #2: acpi-bus_state.patch --] [-- Type: text/plain, Size: 389 bytes --] --- linux-2.6.0-test5/drivers/acpi/bus.c.orig 2003-09-11 17:23:06.000000000 -0300 +++ linux-2.6.0-test5/drivers/acpi/bus.c 2003-09-11 17:23:14.000000000 -0300 @@ -333,7 +333,7 @@ schedule(); remove_wait_queue(&acpi_bus_event_queue, &wait); - set_current_state(TASK_RUNNING); + __set_current_state(TASK_RUNNING); if (signal_pending(current)) return_VALUE(-ERESTARTSYS); ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-09-12 11:12 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-11 20:56 [PATCH] unneeded memory barrier Grover, Andrew
[not found] ` <F760B14C9561B941B89469F59BA3A8470255EF0F-sBd4vmA9Se4Lll3ZsUKC9FDQ4js95KgL@public.gmane.org>
2003-09-11 21:34 ` Felipe W Damasio
[not found] ` <3F60EA55.90008-y7mWNqJcIDpfJ/NunPodnw@public.gmane.org>
2003-09-12 11:12 ` Pavel Machek
-- strict thread matches above, loose matches on Subject: below --
2003-09-11 20:31 Felipe W Damasio
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox