Re: [RFC PATCH] introduce sys_membarrier(): process-wide memorybarrier (v3a)

From: Peter Zijlstra
Date: Mon Jan 11 2010 - 16:20:20 EST


On Mon, 2010-01-11 at 15:52 -0500, Mathieu Desnoyers wrote:
>
> So the clear bit can occur far, far away in the future, we don't care.
> We'll just send extra IPIs when unneeded in this time-frame.

I think we should try harder not to disturb CPUs, particularly in the
face of RT tasks and DoS scenarios. Therefore I don't think we should
just wildly send to mm_cpumask(), but verify (although speculatively)
that the remote tasks' mm matches ours.



--
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/