Re: [PATCH 1/2] percpu-rw-semaphores: use light/heavy barriers

From: Peter Zijlstra
Date: Tue Oct 23 2012 - 16:57:19 EST


On Tue, 2012-10-23 at 21:23 +0200, Oleg Nesterov wrote:
>
> static void mb_ipi(void *arg)
> {
> smp_mb(); /* unneeded ? */
> }
>
> static void force_mb_on_each_cpu(void)
> {
> smp_mb();
> smp_call_function(mb_ipi, NULL, 1);
> }

You know we're spending an awful lot of time and effort to get rid of
such things, right? RT and HPC people absolutely hate these random IPI
things.
--
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/