[PATCH] cond_resched(): fix bogus might_sleep() warning
authorIngo Molnar <mingo@elte.hu>
Fri, 8 Jul 2005 00:57:04 +0000 (17:57 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 8 Jul 2005 01:23:47 +0000 (18:23 -0700)
commit5bbcfd9000887c0da7d57cc7b3ac869fc0dd5aa9
tree7047a60dc99e5484560b40027c81f92a4e291b29
parenta4014d8f61a6a136d22422cf8aa978e6495dbad9
[PATCH] cond_resched(): fix bogus might_sleep() warning

The BKS might be reacquired before we have dropped PREEMPT_ACTIVE, which
could trigger a second could trigger a second cond_resched() call.  Bug
found by Hirofumi Ogawa.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/sched.c