]> git.baikalelectronics.ru Git - kernel.git/commit
[S390] appldata: avoid deadlock with appldata_mem
authorGerald Schaefer <gerald.schaefer@de.ibm.com>
Thu, 23 Apr 2009 11:58:07 +0000 (13:58 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 23 Apr 2009 11:58:17 +0000 (13:58 +0200)
commit547f7bebbe31720f21a3de9751ea09a374977bee
treeaecfd29ad345e2bc288c6e4ea046f7d559c87270
parent895878d598bc17fed9e5d4f448dd2212404b46f5
[S390] appldata: avoid deadlock with appldata_mem

The appldata_ops callbacks are called with a spin_lock held. But the
appldata_mem callback then calls all_vm_events(), which calls
get_online_cpus(), which might sleep. This possible deadlock is fixed
by using a mutex instead of a spin_lock.

Signed-off-by: Gerald Schaefer <gerald.schaefer@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/appldata/appldata_base.c
arch/s390/appldata/appldata_mem.c