Re: [PATCH] 2.6.16 - futex: small optimization (?)
From: Pierre PEIFFER
Date: Thu Mar 30 2006 - 09:48:24 EST
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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/