Messages in this thread | | | Subject | Re: + sched-fix-raciness-in-runqueue_is_locked.patch added to -mm tree | From | Steven Rostedt <> | Date | Sat, 19 Sep 2009 15:21:16 -0400 |
| |
On Sat, 2009-09-19 at 11:55 -0700, akpm@linux-foundation.org wrote: > The patch titled > sched(): fix raciness in runqueue_is_locked() > has been added to the -mm tree. Its filename is > sched-fix-raciness-in-runqueue_is_locked.patch > > Before you just go and hit "reply", please: > a) Consider who else should be cc'ed > b) Prefer to cc a suitable mailing list as well > c) Ideally: find the original patch on the mailing list and do a > reply-to-all to that, adding suitable additional cc's > > *** Remember to use Documentation/SubmitChecklist when testing your code *** > > See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find > out what to do about this > > The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ > > ------------------------------------------------------ > Subject: sched(): fix raciness in runqueue_is_locked() > From: Andrew Morton <akpm@linux-foundation.org> > > runqueue_is_locked() is unavoidably racy due to a poor interface design. > It does > > cpu = get_cpu() > ret = some_perpcu_thing(cpu); > put_cpu(cpu); > return ret; > > Its return value is unreliable. > > Fix. > > Cc: Ingo Molnar <mingo@elte.hu>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> > --- >
| |