lkml.org 
[lkml]   [2011]   [Apr]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2 3/7] signal: retarget_shared_pending: optimize while_each_thread() loop
On Mon, 18 Apr 2011 15:45:18 +0200
Oleg Nesterov <oleg@redhat.com> wrote:

> retarget_shared_pending() blindly does recalc_sigpending_and_wake() for
> every sub-thread, this is suboptimal. We can check t->blocked and stop
> looping once every bit in shared_pending has the new target.
>
> Note: we do not take task_is_stopped_or_traced(t) into account, we are
> not trying to speed up the signal delivery or to avoid the unnecessary
> (but harmless) signal_wake_up(0) in this unlikely case.
>
> Signed-off-by: Oleg Nesterov <oleg@redhat.com>

Nice.

Reviewed-by: Matt Fleming <matt.fleming@linux.intel.com>



\
 
 \ /
  Last update: 2011-04-22 14:29    [from the cache]
©2003-2011 Jasper Spaans