Blackfin: fix up mm locking in address dumping
authorGraf Yang <graf.yang@analog.com>
Wed, 13 Jan 2010 06:09:34 +0000 (06:09 +0000)
committerMike Frysinger <vapier@gentoo.org>
Tue, 9 Mar 2010 05:30:49 +0000 (00:30 -0500)
commitc6669c223a409199a45bb8f31a2e160ee26d19cc
treecb46eb31a6ed699ce7ed31e874e965a38f987bd5
parent7e1082b7dbb60081b157d82106da33686cb9ea91
Blackfin: fix up mm locking in address dumping

The locking code in the address dumper needs to grab the mm's mmap_sem
so that other CPUs do not get an inconsistent view.  On UP systems this
really wasn't a problem, but it is easy to trigger a race on SMP systems
when another CPU removes a mapping.

Signed-off-by: Graf Yang <graf.yang@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
arch/blackfin/kernel/traps.c