]> asedeno.scripts.mit.edu Git - linux.git/commit
locking/qspinlock: Remove unnecessary BUG_ON() call
authorWaiman Long <longman@redhat.com>
Mon, 25 Feb 2019 01:14:13 +0000 (20:14 -0500)
committerIngo Molnar <mingo@kernel.org>
Thu, 28 Feb 2019 06:55:38 +0000 (07:55 +0100)
commit733000c7ffd9d9c8c4fdfd82f0d41956c8cf0537
tree6e38cfcfeba4e5e5539a5822ef6fe04a5bc7e929
parent02e525b2aff1d665f6466e1d123ee4cb69f1d4b0
locking/qspinlock: Remove unnecessary BUG_ON() call

With the > 4 nesting levels case handled by the commit:

  d682b596d993 ("locking/qspinlock: Handle > 4 slowpath nesting levels")

the BUG_ON() call in encode_tail() will never actually be triggered.

Remove it.

Signed-off-by: Waiman Long <longman@redhat.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Will Deacon <will.deacon@arm.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/1551057253-3231-1-git-send-email-longman@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/locking/qspinlock.c