From: Martin Schwidefsky Date: Sat, 4 Jun 2005 22:43:32 +0000 (-0700) Subject: [PATCH] s390: in_interrupt vs. in_atomic X-Git-Tag: v2.6.12-rc6~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=595bf2aacae96d0f87352a1ff5476b79e52e212f;p=pandora-kernel.git [PATCH] s390: in_interrupt vs. in_atomic The condition for no context in do_exception checks for hard and soft interrupts by using in_interrupt() but not for preemption. This is bad for the users of __copy_from/to_user_inatomic because the fault handler might call schedule although the preemption count is != 0. Use in_atomic() instead in_interrupt(). Signed-off-by: Martin Schwidefsky Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed