lkml.org 
[lkml]   [2006]   [Mar]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] 2.6.16 - futex: small optimization (?)
Eric Dumazet a écrit :
> I think your analysis is correct Pierre, but you speak of
> 'task-switches', where there is only a spinlock involved :
>
> On UP case : a wake_up_all() wont preempt current thread : it will
> task-switch only when current thread exits kernel mode.
>
> On PREEMPT case : wake_up_all() wont preempt current thread (because
> current thread is holding bh->lock).
>
> On SMP : the awaken thread will spin some time on bh->lock, but not
> task-switch again.

Ok, yes, you're right, thanks.

>
> On RT kernel, this might be different of course...

So, I confirm it only happens on RT kernel ...
... but my patch does not work on those kernels :-/

In fact, I don't really see what's wrong ?

--
Pierre

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-03-30 16:53    [W:0.029 / U:4.660 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site