Revert "sched: improve preempt debugging"

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Thursday, January 15, 2009 - 7:05 pm

Gitweb:     http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=01e3eb...
Commit:     01e3eb82278bf45221fc38b391bc5ee0f6a314d6
Parent:     fd2ab30b65e961b974ae0bc71e0d47d6b35e0968
Author:     Ingo Molnar <mingo@elte.hu>
AuthorDate: Mon Jan 12 13:00:50 2009 +0100
Committer:  Ingo Molnar <mingo@elte.hu>
CommitDate: Mon Jan 12 13:00:50 2009 +0100

    Revert "sched: improve preempt debugging"
    
    This reverts commit 7317d7b87edb41a9135e30be1ec3f7ef817c53dd.
    
    This has been reported (and bisected) by Alexey Zaytsev and
    Kamalesh Babulal to produce annoying warnings during bootup
    on both x86 and powerpc.
    
    kernel_locked() is not a valid test in IRQ context (we update the
    BKL's ->lock_depth and the preempt count separately and non-atomicalyy),
    so we cannot put it into the generic preempt debugging checks which
    can run in IRQ contexts too.
    
    Reported-and-bisected-by: Alexey Zaytsev <alexey.zaytsev@gmail.com>
    Reported-and-bisected-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
    Signed-off-by: Ingo Molnar <mingo@elte.hu>
---
 kernel/sched.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/kernel/sched.c b/kernel/sched.c
index 8be2c13..3b630d8 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -4440,7 +4440,7 @@ void __kprobes sub_preempt_count(int val)
 	/*
 	 * Underflow?
 	 */
-       if (DEBUG_LOCKS_WARN_ON(val > preempt_count() - (!!kernel_locked())))
+	if (DEBUG_LOCKS_WARN_ON(val > preempt_count()))
 		return;
 	/*
 	 * Is the spinlock portion underflowing?
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Revert "sched: improve preempt debugging", Linux Kernel Mailing ..., (Thu Jan 15, 7:05 pm)