Re: [PATCH][RFC] IDE locking #2

From: Zwane Mwaikambo (zwane@linux.realnet.co.sz)
Date: Tue Jun 25 2002 - 09:21:07 EST


On Tue, 25 Jun 2002, OGAWA Hirofumi wrote:

> > + BUG_ON(!spin_is_locked(ch->lock));
>
> spin_is_locked() returns 0 always on the UP system.
> Instead, the following macro may be useful.
>
> #ifdef CONFIG_SMP
> #define assert_spin_is_locked(lock) BUG_ON(!spin_is_locked(lock))
> #else
> #define assert_spin_is_locked(lock) do {} while(0)
> #endif

Oh my =) thanks i'll change that.

Cheers,
        Zwane

-- 
http://function.linuxpower.ca
		

- 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/



This archive was generated by hypermail 2b29 : Sun Jun 30 2002 - 22:00:09 EST