Thread (25 messages) flat view 25 messages, 5 authors, 2011-11-02

Re: >Re: [RFC] should VM_BUG_ON(cond) really evaluate cond

From: Linus Torvalds <torvalds@linux-foundation.org>
Date: 2011-10-28 12:19:25
Also in: lkml

On Fri, Oct 28, 2011 at 5:09 AM, Eric Dumazet [off-list ref] 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
INTERFACES.

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.

                      Linus
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help