Commit b9c16a0
locking/mutex: Fix lockdep_assert_held() fail
In commit:
659cf9f ("locking/ww_mutex: Optimize ww-mutexes by waking at most one waiter for backoff when acquiring the lock")
I replaced a comment with a lockdep_assert_held(). However it turns out
we hide that lock from lockdep for hysterical raisins, which results
in the assertion always firing.
Remove the old debug code as lockdep will easily spot the abuse it was
meant to catch, which will make the lock visible to lockdep and make
the assertion work as intended.
Reported-by: Mike Galbraith <efault@gmx.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Nicolai Haehnle <Nicolai.Haehnle@amd.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Fixes: 659cf9f ("locking/ww_mutex: Optimize ww-mutexes by waking at most one waiter for backoff when acquiring the lock")
Link: http://lkml.kernel.org/r/20170117150609.GB32474@worktop
Signed-off-by: Ingo Molnar <mingo@kernel.org>1 parent 4009f4b commit b9c16a0
3 files changed
Lines changed: 11 additions & 35 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
325 | 325 | | |
326 | 326 | | |
327 | 327 | | |
328 | | - | |
329 | | - | |
330 | 328 | | |
331 | 329 | | |
332 | 330 | | |
| |||
350 | 348 | | |
351 | 349 | | |
352 | 350 | | |
353 | | - | |
| 351 | + | |
354 | 352 | | |
355 | | - | |
| 353 | + | |
356 | 354 | | |
357 | 355 | | |
358 | 356 | | |
| |||
740 | 738 | | |
741 | 739 | | |
742 | 740 | | |
743 | | - | |
744 | 741 | | |
745 | 742 | | |
746 | 743 | | |
| |||
766 | 763 | | |
767 | 764 | | |
768 | 765 | | |
769 | | - | |
| 766 | + | |
770 | 767 | | |
771 | 768 | | |
772 | 769 | | |
| |||
830 | 827 | | |
831 | 828 | | |
832 | 829 | | |
833 | | - | |
| 830 | + | |
834 | 831 | | |
835 | 832 | | |
836 | 833 | | |
| |||
853 | 850 | | |
854 | 851 | | |
855 | 852 | | |
856 | | - | |
| 853 | + | |
857 | 854 | | |
858 | | - | |
| 855 | + | |
859 | 856 | | |
860 | 857 | | |
861 | 858 | | |
| |||
872 | 869 | | |
873 | 870 | | |
874 | 871 | | |
875 | | - | |
| 872 | + | |
876 | 873 | | |
877 | 874 | | |
878 | 875 | | |
879 | 876 | | |
880 | 877 | | |
881 | 878 | | |
882 | 879 | | |
883 | | - | |
| 880 | + | |
884 | 881 | | |
885 | 882 | | |
886 | 883 | | |
| |||
999 | 996 | | |
1000 | 997 | | |
1001 | 998 | | |
1002 | | - | |
1003 | 999 | | |
| 1000 | + | |
1004 | 1001 | | |
1005 | 1002 | | |
1006 | 1003 | | |
| |||
1035 | 1032 | | |
1036 | 1033 | | |
1037 | 1034 | | |
1038 | | - | |
| 1035 | + | |
1039 | 1036 | | |
1040 | 1037 | | |
1041 | 1038 | | |
| |||
1052 | 1049 | | |
1053 | 1050 | | |
1054 | 1051 | | |
1055 | | - | |
| 1052 | + | |
1056 | 1053 | | |
1057 | 1054 | | |
1058 | 1055 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | 12 | | |
17 | 13 | | |
18 | 14 | | |
| |||
0 commit comments