Messages in this thread | | | From | "Manfred Spraul" <> | Subject | Re: [bugfix] SMP, shm-2.3.52-A0 | Date | Fri, 17 Mar 2000 16:07:22 +0100 |
| |
From: "Andrew Morton" <morton@nortelnetworks.com> > > Prevent this from ever happening again.... I would love to see a kassert() macro in the kernel, but
> + > + KASSERT(spin_is_locked(&kernel_flag)); > Did you actually test your patch?
from linux/include/linux/spinlock.h: #ifndef __SMP__ #define spin_is_locked(lock) 0 #endif
you cannot use spin_is_locked() in your assert macro, you need a special "kassert_locked()" macro :-(
-- Manfred
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |