Repository navigation
Commit abaa93d
committed
rcu: Simplify priority boosting by putting rt_mutex in rcu_node
RCU priority boosting currently checks for boosting via a pointer in
task_struct. However, this is not needed: As Oleg noted, if the
rt_mutex is placed in the rcu_node instead of on the booster's stack,
the boostee can simply check it see if it owns the lock. This commit
makes this change, shrinking task_struct by one pointer and the kernel
by thirteen lines.
Suggested-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>1 parent 48bd8e9 commit abaa93d
4 files changed
Lines changed: 15 additions & 28 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | 105 | | |
112 | 106 | | |
113 | 107 | | |
| |||
119 | 113 | | |
120 | 114 | | |
121 | 115 | | |
122 | | - | |
123 | | - | |
| 116 | + | |
124 | 117 | | |
125 | 118 | | |
126 | 119 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1270 | 1270 | | |
1271 | 1271 | | |
1272 | 1272 | | |
1273 | | - | |
1274 | | - | |
1275 | | - | |
1276 | 1273 | | |
1277 | 1274 | | |
1278 | 1275 | | |
| |||
2009 | 2006 | | |
2010 | 2007 | | |
2011 | 2008 | | |
2012 | | - | |
2013 | | - | |
2014 | | - | |
2015 | 2009 | | |
2016 | 2010 | | |
2017 | 2011 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
180 | 183 | | |
181 | 184 | | |
182 | 185 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
336 | 337 | | |
337 | 338 | | |
338 | 339 | | |
339 | | - | |
| 340 | + | |
340 | 341 | | |
341 | 342 | | |
342 | 343 | | |
| |||
398 | 399 | | |
399 | 400 | | |
400 | 401 | | |
401 | | - | |
402 | | - | |
403 | | - | |
404 | | - | |
405 | | - | |
| 402 | + | |
| 403 | + | |
406 | 404 | | |
407 | 405 | | |
408 | 406 | | |
| |||
427 | 425 | | |
428 | 426 | | |
429 | 427 | | |
430 | | - | |
431 | | - | |
| 428 | + | |
| 429 | + | |
432 | 430 | | |
433 | 431 | | |
434 | 432 | | |
| |||
1151 | 1149 | | |
1152 | 1150 | | |
1153 | 1151 | | |
1154 | | - | |
1155 | 1152 | | |
1156 | 1153 | | |
1157 | 1154 | | |
| |||
1202 | 1199 | | |
1203 | 1200 | | |
1204 | 1201 | | |
1205 | | - | |
1206 | | - | |
| 1202 | + | |
1207 | 1203 | | |
1208 | 1204 | | |
1209 | | - | |
1210 | | - | |
| 1205 | + | |
| 1206 | + | |
| 1207 | + | |
1211 | 1208 | | |
1212 | | - | |
| 1209 | + | |
1213 | 1210 | | |
1214 | 1211 | | |
1215 | 1212 | | |
| |||
0 commit comments