Re: >Re: [RFC] should VM_BUG_ON(cond) really evaluate cond
From: Linus Torvalds
Date: Fri Oct 28 2011 - 08:19:24 EST
On Fri, Oct 28, 2011 at 5:09 AM, Eric Dumazet <eric.dumazet@xxxxxxxxx> wrote:
> What you describe is true for non atomic variables as well, its not part
> of the atomic_ops documented semantic.
Eric - your "documentation" is so much toilet paper. So don't bother
talkign about "documented semantics". Start talking about SANE
What I described is very much true of non-atomics. Nobody doubts that.
THE QUESTION IS WHETHER IT MAKES SENSE FOR ATOMICS, DAMMIT!
And quite frankly, the behavior I described does not seem to make any
sense for atomics.
"Sane interfaces" are important. Insane interfaces lead to bugs.
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/