Re: [PATCH] rwlock_is_locked undefined for UP systems
From: Mike Fedyk
Date: Fri Jan 16 2004 - 13:14:19 EST
On Fri, Jan 16, 2004 at 06:14:06PM +0300, Nikita Danilov wrote:
> it should now be changed to the
>
> void foo_locked(struct bar *obj)
> {
> #ifdef CONFIG_SMP
> BUG_ON(!rwlock_is_locked(&obj->lock));
> #endif
> /* proceed with obj. */
> }
You forgot preempt... ;)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/