Re: [PATCH 4/4][diskdump] x86-64 support

From: Christoph Hellwig
Date: Sat Sep 04 2004 - 06:16:29 EST


On Tue, Aug 31, 2004 at 06:10:40PM +0900, Takao Indoh wrote:
> >a spin_trylock would be safe. hd can't be NULL.
>
> Could you explain to me why spin_is_locked is not safe?

it's inherently racy. Also it's always return 0 on UP systems which
makes it totally useless there.

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