The push for energy efficiency will require that RCU tag rcu_head structures to indicate whether or not their invocation is time critical. This tagging is best carried out in the bottom bits of the ->next pointers in the rcu_head structures. This tagging requires that the rcu_head structures be properly aligned, so this commit adds the required diagnostics.
Showing the changes to kernel (1 of 1 file). Show all
Unified · Split
| @@ -1707,6 +1707,7 @@ __call_rcu(struct rcu_head *head, void (*func)(struct rcu_head *rcu), · 1706 unmodified lines | |||
| 1707 | unsigned long flags; | 1707 | unsigned long flags; |
| 1708 | struct rcu_data *rdp; | 1708 | struct rcu_data *rdp; |
| 1709 | 1709 | ||
| 1710 | WARN_ON_ONCE((unsigned long)head & 0x3); /* Misaligned rcu_head! */ | ||
| 1710 | debug_rcu_head_queue(head); | 1711 | debug_rcu_head_queue(head); |
| 1711 | head->func = func; | 1712 | head->func = func; |
| 1712 | head->next = NULL; | 1713 | head->next = NULL; |