Repository navigation
Commit ec8f954
committed
posix-timers: Use a callback for cancel synchronization on PREEMPT_RT
Posix timer delete retry loops are affected by the same priority inversion
and live lock issues as the other timers.
Provide a RT specific synchronization function which keeps a reference to
the timer by holding rcu read lock to prevent the timer from being freed,
dropping the timer lock and invoking the timer specific wait function via a
new callback.
This does not yet cover posix CPU timers because they need more special
treatment on PREEMPT_RT.
[ This is folded into the original attempt which did not use a callback. ]
Originally-by: Anna-Maria Gleixenr <anna-maria@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Frederic Weisbecker <frederic@kernel.org>
Link: https://lkml.kernel.org/r/20190819143801.656864506@linutronix.de1 parent 5d99b32 commit ec8f954
3 files changed
Lines changed: 32 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
605 | 605 | | |
606 | 606 | | |
607 | 607 | | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
608 | 621 | | |
609 | 622 | | |
610 | 623 | | |
| |||
834 | 847 | | |
835 | 848 | | |
836 | 849 | | |
| 850 | + | |
837 | 851 | | |
838 | 852 | | |
839 | 853 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
805 | 805 | | |
806 | 806 | | |
807 | 807 | | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
808 | 813 | | |
809 | 814 | | |
810 | 815 | | |
| 816 | + | |
811 | 817 | | |
812 | 818 | | |
| 819 | + | |
| 820 | + | |
813 | 821 | | |
814 | | - | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
815 | 827 | | |
816 | 828 | | |
817 | 829 | | |
| |||
1255 | 1267 | | |
1256 | 1268 | | |
1257 | 1269 | | |
| 1270 | + | |
1258 | 1271 | | |
1259 | 1272 | | |
1260 | 1273 | | |
| |||
1270 | 1283 | | |
1271 | 1284 | | |
1272 | 1285 | | |
| 1286 | + | |
1273 | 1287 | | |
1274 | 1288 | | |
1275 | 1289 | | |
| |||
1300 | 1314 | | |
1301 | 1315 | | |
1302 | 1316 | | |
| 1317 | + | |
1303 | 1318 | | |
1304 | 1319 | | |
1305 | 1320 | | |
| |||
1315 | 1330 | | |
1316 | 1331 | | |
1317 | 1332 | | |
| 1333 | + | |
1318 | 1334 | | |
1319 | 1335 | | |
1320 | 1336 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
0 commit comments