diff options
author | Thomas Gleixner <[email protected]> | 2021-03-26 16:29:43 +0100 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2021-03-29 15:57:04 +0200 |
commit | c2c360ed7f28fd6b7eb7e39e70af2d2ae405f466 (patch) | |
tree | 0850b7991410c54c110d923f274ef7f2ab908fb3 /include/linux/overflow.h | |
parent | 82cd5b1039e26b1b1254886464991e34de439ac5 (diff) |
locking/rtmutex: Restrict the trylock WARN_ON() to debug
The warning as written is expensive and not really required for a
production kernel. Make it depend on rt mutex debugging and use !in_task()
for the condition which generates far better code and gives the same
answer.
Signed-off-by: Thomas Gleixner <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Acked-by: Peter Zijlstra (Intel) <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'include/linux/overflow.h')
0 files changed, 0 insertions, 0 deletions