diff options
author | Ingo Molnar <[email protected]> | 2017-03-01 09:25:55 +0100 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2017-03-01 09:25:55 +0100 |
commit | 9dcfe2c75b51f454f39c2de4756e841228865b47 (patch) | |
tree | 994ed0f8e86d8eeb6baec7a72b489fef5cd8f9be /scripts/gdb/linux | |
parent | 2d6be4abf514fc26c83d239c7f31da1f95e4a31d (diff) |
locking/refcounts: Change WARN() to WARN_ONCE()
Linus noticed that the new refcount.h APIs used WARN(), which would turn
into a dmesg DoS if it triggers frequently on some buggy driver.
So make sure we only warn once. These warnings are never supposed to happen,
so it's typically not a problem to lose subsequent warnings.
Suggested-by: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra (Intel) <[email protected]>
Cc: Elena Reshetova <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Link: http://lkml.kernel.org/r/CA+55aFzbYUTZ=oqZ2YgDjY0C2_n6ODhTfqj6V+m5xWmDxsuB0w@mail.gmail.com
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'scripts/gdb/linux')
0 files changed, 0 insertions, 0 deletions