]> git.baikalelectronics.ru Git - kernel.git/commit
[SPARC64]: Bulletproof MMU context locking.
authorDavid S. Miller <davem@sunset.davemloft.net>
Tue, 7 Mar 2006 03:59:50 +0000 (19:59 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Mon, 20 Mar 2006 09:14:20 +0000 (01:14 -0800)
commitb60c306f7d83ada6d1de82f466e86739f722b9db
tree37cc4c6793e2b616791d42ee840e5a007a13eccb
parenta95d5dea03809b7cb5c2bc7f526645a1d68bc14c
[SPARC64]: Bulletproof MMU context locking.

1) Always spin_lock_init() in init_context().  The caller essentially
   clears it out, or copies the mm info from the parent.  In both
   cases we need to explicitly initialize the spinlock.

2) Always do explicit IRQ disabling while taking mm->context.lock
   and ctx_alloc_lock.

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc64/mm/init.c
arch/sparc64/mm/tsb.c
include/asm-sparc64/mmu_context.h