This is a port of commit #be0e1e21 to TINY_PREEMPT_RCU. This uses noinline to prevent rcu_read_unlock_special() from being inlined into __rcu_read_unlock().
Unified · Split
| @@ -544,7 +544,7 @@ EXPORT_SYMBOL_GPL(__rcu_read_lock); · 543 unmodified lines | |||
| 544 | * notify RCU core processing or task having blocked during the RCU | 544 | * notify RCU core processing or task having blocked during the RCU |
| 545 | * read-side critical section. | 545 | * read-side critical section. |
| 546 | */ | 546 | */ |
| 547 | static void rcu_read_unlock_special(struct task_struct *t) | 547 | static noinline void rcu_read_unlock_special(struct task_struct *t) |
| 548 | { | 548 | { |
| 549 | int empty; | 549 | int empty; |
| 550 | int empty_exp; | 550 | int empty_exp; |