Repository navigation
Commit 5293c2e
futex,rt_mutex: Provide futex specific rt_mutex API
Part of what makes futex_unlock_pi() intricate is that
rt_mutex_futex_unlock() -> rt_mutex_slowunlock() can drop
rt_mutex::wait_lock.
This means it cannot rely on the atomicy of wait_lock, which would be
preferred in order to not rely on hb->lock so much.
The reason rt_mutex_slowunlock() needs to drop wait_lock is because it can
race with the rt_mutex fastpath, however futexes have their own fast path.
Since futexes already have a bunch of separate rt_mutex accessors, complete
that set and implement a rt_mutex variant without fastpath for them.
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: juri.lelli@arm.com
Cc: bigeasy@linutronix.de
Cc: xlpang@redhat.com
Cc: rostedt@goodmis.org
Cc: mathieu.desnoyers@efficios.com
Cc: jdesfossez@efficios.com
Cc: dvhart@infradead.org
Cc: bristot@redhat.com
Link: http://lkml.kernel.org/r/20170322104151.702962446@infradead.org
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>1 parent fffa954 commit 5293c2e
3 files changed
Lines changed: 62 additions & 32 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
916 | 916 | | |
917 | 917 | | |
918 | 918 | | |
919 | | - | |
| 919 | + | |
920 | 920 | | |
921 | 921 | | |
922 | 922 | | |
| |||
1364 | 1364 | | |
1365 | 1365 | | |
1366 | 1366 | | |
1367 | | - | |
1368 | | - | |
1369 | | - | |
1370 | | - | |
1371 | 1367 | | |
1372 | | - | |
1373 | | - | |
1374 | | - | |
1375 | | - | |
| 1368 | + | |
1376 | 1369 | | |
| 1370 | + | |
| 1371 | + | |
| 1372 | + | |
1377 | 1373 | | |
1378 | | - | |
1379 | | - | |
| 1374 | + | |
| 1375 | + | |
| 1376 | + | |
1380 | 1377 | | |
| 1378 | + | |
1381 | 1379 | | |
1382 | 1380 | | |
1383 | 1381 | | |
| |||
2253 | 2251 | | |
2254 | 2252 | | |
2255 | 2253 | | |
2256 | | - | |
| 2254 | + | |
2257 | 2255 | | |
2258 | 2256 | | |
2259 | 2257 | | |
| |||
2568 | 2566 | | |
2569 | 2567 | | |
2570 | 2568 | | |
2571 | | - | |
| 2569 | + | |
2572 | 2570 | | |
2573 | 2571 | | |
2574 | 2572 | | |
| |||
2591 | 2589 | | |
2592 | 2590 | | |
2593 | 2591 | | |
2594 | | - | |
| 2592 | + | |
2595 | 2593 | | |
2596 | 2594 | | |
2597 | 2595 | | |
| |||
2898 | 2896 | | |
2899 | 2897 | | |
2900 | 2898 | | |
2901 | | - | |
| 2899 | + | |
2902 | 2900 | | |
2903 | 2901 | | |
2904 | 2902 | | |
| |||
2938 | 2936 | | |
2939 | 2937 | | |
2940 | 2938 | | |
2941 | | - | |
| 2939 | + | |
2942 | 2940 | | |
2943 | 2941 | | |
2944 | 2942 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1488 | 1488 | | |
1489 | 1489 | | |
1490 | 1490 | | |
| 1491 | + | |
1491 | 1492 | | |
1492 | | - | |
| 1493 | + | |
1493 | 1494 | | |
1494 | 1495 | | |
1495 | 1496 | | |
1496 | 1497 | | |
1497 | | - | |
1498 | | - | |
1499 | | - | |
| 1498 | + | |
| 1499 | + | |
| 1500 | + | |
| 1501 | + | |
| 1502 | + | |
| 1503 | + | |
| 1504 | + | |
| 1505 | + | |
| 1506 | + | |
| 1507 | + | |
1500 | 1508 | | |
1501 | 1509 | | |
1502 | 1510 | | |
| |||
1555 | 1563 | | |
1556 | 1564 | | |
1557 | 1565 | | |
1558 | | - | |
1559 | | - | |
1560 | | - | |
1561 | | - | |
1562 | | - | |
| 1566 | + | |
| 1567 | + | |
1563 | 1568 | | |
1564 | | - | |
1565 | | - | |
| 1569 | + | |
| 1570 | + | |
1566 | 1571 | | |
1567 | | - | |
1568 | | - | |
| 1572 | + | |
| 1573 | + | |
| 1574 | + | |
| 1575 | + | |
| 1576 | + | |
| 1577 | + | |
| 1578 | + | |
| 1579 | + | |
| 1580 | + | |
| 1581 | + | |
| 1582 | + | |
| 1583 | + | |
1569 | 1584 | | |
1570 | | - | |
| 1585 | + | |
| 1586 | + | |
| 1587 | + | |
| 1588 | + | |
| 1589 | + | |
| 1590 | + | |
| 1591 | + | |
| 1592 | + | |
| 1593 | + | |
| 1594 | + | |
| 1595 | + | |
| 1596 | + | |
| 1597 | + | |
1571 | 1598 | | |
1572 | 1599 | | |
1573 | 1600 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| 112 | + | |
112 | 113 | | |
113 | | - | |
114 | | - | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
115 | 120 | | |
116 | 121 | | |
117 | 122 | | |
| |||
0 commit comments