forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
evl/mutex: fix lock imbalance detection
Depending on the caller to undergo the SCHED_WEAK policy for checking for lock imbalance excludes the common case when threads don't. The proper way for detecting lock imbalance is to make sure the atomic handle of a mutex matches the current unlocker, from the outer call interface. Signed-off-by: Philippe Gerum <rpm@xenomai.org>
- Loading branch information
Showing
1 changed file
with
15 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters