Re: [patch] race-fix for bottom-half-functions [Re: Subtle trouble in remove_bh().]

David S. Miller (davem@dm.cobaltmicro.com)
Thu, 14 Jan 1999 18:32:53 -0800


Date: Fri, 15 Jan 1999 00:59:45 +0100 (CET)
From: Andrea Arcangeli <andrea@e-mind.com>

> I would suggest to change the code so it first clears the mask bit - it
> costs nothing and the function does not need the global cli anymore.

Agreed, it will make the code more robust with a tiny overhead. I repost
here the _whole_ fix for the bottom-half-function SMP races. I think this
should go in fast to avoid maintainers of other archs to fix things two
times ;)

This patch looks strangely like what 32-bit sparc has been doing all
along. :-)

Later,
David S. Miller
davem@dm.cobaltmicro.com

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/