Re: tlb_gather_mmu() and semantics of "fullmm"

David Miller
2009-03-27T07:55:49Z

From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Date: Fri, 27 Mar 2009 17:10:35 +1100

[ zach@vmware.com removed from CC:, it bounces... ]

> So if you test current->mm, you effectively account for mm_users == 1,
> so the only way the mm can be active on another processor is as a lazy
> mm for a kernel thread. So your test should work properly as long
> as you don't have a HW that will do speculative TLB reloads into the
> TLB on that other CPU (and even if you do, you flush-on-switch-in should
> get rid of any crap here).

It seems that way. I'll make this fix, thanks Ben!