| Date | Mon, 29 May 2006 23:26:30 +0200 | From | Ingo Molnar <> | Subject | [patch 42/61] lock validator: special locking: kgdb |
| |
From: Ingo Molnar <mingo@elte.hu>
teach special (recursive, non-ordered) locking code to the lock validator. Has no effect on non-lockdep kernels.
Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Arjan van de Ven <arjan@linux.intel.com> --- --- kernel/kgdb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Index: linux/kernel/kgdb.c =================================================================== --- linux.orig/kernel/kgdb.c +++ linux/kernel/kgdb.c @@ -1539,7 +1539,7 @@ int kgdb_handle_exception(int ex_vector, if (!debugger_step || !kgdb_contthread) { for (i = 0; i < NR_CPUS; i++) - spin_unlock(&slavecpulocks[i]); + spin_unlock_non_nested(&slavecpulocks[i]); /* Wait till all the processors have quit * from the debugger. */ for (i = 0; i < NR_CPUS; i++) { @@ -1622,7 +1622,7 @@ static void __init kgdb_internal_init(vo /* Initialize our spinlocks. */ for (i = 0; i < NR_CPUS; i++) - spin_lock_init(&slavecpulocks[i]); + spin_lock_init_static(&slavecpulocks[i]); for (i = 0; i < MAX_BREAKPOINTS; i++) kgdb_break[i].state = bp_none; - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|