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

Patrik Rak (patrik@raxoft.cz)
Thu, 28 Jan 1999 09:37:26 +0100 (CET)


On Wed, 20 Jan 1999, Andrea Arcangeli wrote:

> Woops I did a little mistake in it. Excuse me. When we do remove_bh() we

Well, if you ask me, you should also treat bh_mask atomically (using
set_bit() & co). Otherwise it can get corrupted, as in your patch some
accesses to it are not protected by the spinlock.

I know that many people out there consider these problems too subtle,
but I can't help myself - I just tend to nail down every bug I spot
(err, I mean, the software ones :)

Patrik

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