]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] uml: avoid malloc to sleep in atomic sections
authorPaolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Thu, 19 Jan 2006 01:42:58 +0000 (17:42 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Thu, 19 Jan 2006 03:20:21 +0000 (19:20 -0800)
commite6f0bfa0c795fee5ffd17b27b5ff42796f70da25
tree666dd2919bd156aa183a87576224d0fad3c4cf72
parent626def97289dd3bb774eceb69a95bf65ad20ae71
[PATCH] uml: avoid malloc to sleep in atomic sections

Ugly trick to help make malloc not sleeping - we can't do anything else.  But
this is not yet optimal, since spinlock don't trigger in_atomic() when
preemption is disabled.

Also, even if ugly, this was already used in one place, and was even more
bogus.  Fix it.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Cc: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/um/include/kern_util.h
arch/um/include/user.h
arch/um/kernel/process_kern.c
arch/um/os-Linux/helper.c