public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* What protects cpu_tlbstate?
@ 2007-04-05 19:44 Jeremy Fitzhardinge
  2007-04-05 20:28 ` Andi Kleen
  0 siblings, 1 reply; 5+ messages in thread
From: Jeremy Fitzhardinge @ 2007-04-05 19:44 UTC (permalink / raw)
  To: Benjamin LaHaise, Andi Kleen, Ingo Molnar; +Cc: Linux Kernel Mailing List

Hi,

What protects the cpu_tlbstate?  I see in i386/kernel/smp.c that its
always used in a non-preemptable area, but what prevents races with
interrupts?  For example, what prevents leave_mm() called via the
flush_tlb_all IPI from racing with, say, enter_lazy_tlb?  Couldn't a
race leave cpu_tlbstate in an inconsistent state?

Or does it simply not matter?  But if that were true, it seems to me
that there should be at least some barriers or something to make sure
the final state is consistent.

Thanks,
    J

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-04-05 21:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-05 19:44 What protects cpu_tlbstate? Jeremy Fitzhardinge
2007-04-05 20:28 ` Andi Kleen
2007-04-05 21:00   ` Jeremy Fitzhardinge
2007-04-05 21:03     ` Andi Kleen
2007-04-05 21:08       ` Jeremy Fitzhardinge

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox