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

Zwane Mwaikambo (zwane@linux.realnet.co.sz)
Tue, 25 Jun 2002 16:21:07 +0200 (SAST)


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/