mirror of
https://github.com/torvalds/linux.git
synced 2026-11-20 13:03:48 +00:00
Introduce local_lock_is_locked() that returns true when given local_lock is locked by current cpu (in !PREEMPT_RT) or by current task (in PREEMPT_RT). The goal is to detect a deadlock by the caller. Reviewed-by: Sebastian Andrzej Siewior <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Signed-off-by: Vlastimil Babka <[email protected]>