summaryrefslogtreecommitdiff
path: root/lib/globtest.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2017-03-01 09:25:55 +0100
committerIngo Molnar <mingo@kernel.org>2017-03-01 09:25:55 +0100
commit9dcfe2c75b51f454f39c2de4756e841228865b47 (patch)
tree994ed0f8e86d8eeb6baec7a72b489fef5cd8f9be /lib/globtest.c
parent2d6be4abf514fc26c83d239c7f31da1f95e4a31d (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 <torvalds@linux-foundation.org> Cc: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Elena Reshetova <elena.reshetova@intel.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Link: http://lkml.kernel.org/r/CA+55aFzbYUTZ=oqZ2YgDjY0C2_n6ODhTfqj6V+m5xWmDxsuB0w@mail.gmail.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'lib/globtest.c')
0 files changed, 0 insertions, 0 deletions