On Thu, 1 May 2008, Mathieu Desnoyers wrote:
quoted text >
> Yep. I think using a mutex should fix it. There is no reason to use a
> spinlock rather than a mutex here.
Is there any reason to do any locking what-so-ever?
If this code could possibly race with something else, that sounds like a
bug in itself, no?
Linus
--
unsubscribe notice 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/
Messages in current thread:
Re: [PATCH] Fix SMP alternatives : use mutex instead of sp ... , Linus Torvalds , (Thu May 1, 11:52 am)