On Fri, 2012-06-29 at 07:58 +1000, Benjamin Herrenschmidt wrote: > On Fri, 2012-06-29 at 07:57 +1000, Benjamin Herrenschmidt wrote: > > On Thu, 2012-06-28 at 18:52 +0200, Peter Zijlstra wrote: > > > No I think you're right (as always).. also an IPI will not force > > > schedule the thread that might be running on the receiving cpu, also > > > we'd have to wait for any such schedule to complete in order to > > > guarantee the mm isn't lazily used anymore. > > > > > > Bugger.. > > > > You can still do it if the mm count is 1 no ? Ie, current is the last > > holder of a reference to the mm struct... which will probably be the > > common case for short lived programs. > > Also I just remembered... x86 flushes in SMP via IPIs right ? So maybe > you can invent a "detach and flush" variant of it ? Its not just x86 I worry about.. I want to share as much as possible between all our architectures. But yeah, I could do it for mm_count == 1, but I'd still need to special case s390 because they always want it. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href