Re: kernel thread exit race

Alan Cox (alan@lxorguk.ukuu.org.uk)
07 Aug 2002 13:11:23 +0100


On Wed, 2002-08-07 at 11:05, Nikita Danilov wrote:
> Ah I see, thank you and Russell. But this depends on no architecture
> ever accessing spinlock data after letting waiters to run, otherwise
> there still is (tiny) window for race at the end of complete() call,
> right?

complete() as opposed to spinlocks/semaphores is defined to be safe to
free the object once the complete finishes

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