PM: cpu: Restore the RCU grace period to cpu_pm_unregister_notifier()
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 5 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | clocksource/drivers/timer-ti-dm: Unregister CPU PM notifier outside of the timer lockdrivers/ | +6 | 3 replies | |
| 2/2 | PM: cpu: Restore synchronize_rcu() to cpu_pm_unregister_notifier()kernel/ | +8 | 2 replies |
Reviews trailers per patch
1 of 2 patches has a Reviewed-by or Acked-by.
| Patch | Rafael J. Wysocki (Intel) |
|---|---|
| 1/2 | |
| 2/2 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/2] PM: cpu: Restore the RCU grace period to cpu_pm_unregister_notifier()
Since commit b2f6662ac08d ("PM: cpu: Make notifier chain use a raw_spinlock_t") cpu_pm_unregister_notifier() no longer waits for an RCU grace period, but cpu_pm_notify() still walks the chain with only rcu_read_lock() held. A driver that frees its notifier block right after unregistering can race with a concurrent walker.
Patch 1 moves the one caller that unregisters from atomic context out from under its spinlock, patch 2 restores the grace period.
Bradley Morgan (2):
clocksource/drivers/timer-ti-dm: Unregister CPU PM notifier outside of
the timer lock
PM: cpu: Restore synchronize_rcu() to cpu_pm_unregister_notifier()
drivers/clocksource/timer-ti-dm.c | 9 ++++++--- kernel/cpu_pm.c | 9 ++++++++- 2 files changed, 14 insertions(+), 4 deletions(-)
Signature · 1 line
2.47.3