pmap - Missing critical section when calling lwkt_ipiq_process().
authorAntonio Huete Jimenez <tuxillo@quantumachine.net>
Mon, 17 Oct 2011 19:26:22 +0000 (12:26 -0700)
committerAntonio Huete Jimenez <tuxillo@quantumachine.net>
Mon, 17 Oct 2011 22:07:22 +0000 (00:07 +0200)
commit9d8625ebaab570eee3ac8eb7269d6001bcda19cf
treef461e82895ae520c4dda97131ff4ff894c98b853
parentd9f2182065ad6ef762980cecb0f52ff926deea55
pmap - Missing critical section when calling lwkt_ipiq_process().

- pmap_interlock_wait() explicitly calls lwkt_process_ipiq() which expects to
be in a critical section. We still need cpu_ccfence() to guarantee that
pmap->pm_active is always read inside the loop.

- Sync pmap_interlock_wait's comment for both i386 and x86_64.

DragonFly-bug: <http://bugs.dragonflybsd.org/issue2152>

Reviewed by: @dillon, @vsrinivas
sys/platform/pc32/i386/pmap.c
sys/platform/pc64/x86_64/pmap.c