Skip to content

RFC rt: Fix hotplugging and other nasties

Steven Rostedt linux-rt-users lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest9 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9timer: Fix hotplug for -rtkernel/timer.c+5 -110 replies
2/9futex/rt: Fix possible lockup when taking pi_lock in proxy handlerkernel/rtmutex.c+3 -30 replies
3/9lglock/rt: Use non-rt for_each_cpu() in -rt codeinclude/linux/lglock.h+32 -32 replies
4/9rtmutex: Add new mutex_lock_savestate() APIinclude/linux/mutex.h include/linux/mutex_rt.h include/linux/rtmutex.h +2 more+23 -00 replies
5/9ring-buffer/rt: Check for irqs disabled before grabbing reader lockkernel/trace/ring_buffer.c+1 -10 replies
6/9sched/rt: Fix wait_task_interactive() to test rt_spin_lock statekernel/sched.c+4 -20 replies
7/9cpu/rt: Rework cpu down for PREEMPT_RTinclude/linux/sched.h kernel/cpu.c kernel/sched.c+262 -208 replies
8/9workqueue: Revert workqueue: Fix PF_THREAD_BOUND abusekernel/workqueue.c+9 -200 replies
9/9workqueue: Revert workqueue: Fix cpuhotplug trainwreckinclude/linux/cpu.h include/linux/workqueue.h kernel/workqueue.c+415 -1570 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH RT 0/9][RFC] rt: Fix hotplugging and other nasties

On both 3.0-rt and 3.2-rt I ran a stress test on CPU hotplug and they both failed miserably. These bugs also show themselves on suspend.

After spending 5 long days debugging this, and finding lots of bugs I have a patch series that makes the CPU hot plugging rather stable.

The first few patches fix other broken RT features that were discovered while debugging hotplug.

Patch 7 is a rework of how RT handles taking down a CPU. There were several corner cases that the original approach failed on, and this rework seems to cover them now.

Patch 8 and 9 revert the rework that was done on workqueue for RT. Yes, letting workqueues play games with THREAD_BOUND is bad, but the fixes introduced several more races that were very hard to fix. Every fix seemed to produce a new race, and it was a bad game of cat and mouse running around a goose hunt whacking moles!

Since the rework of the CPU down code no longer had issues with workqueue messing with THREAD_BOUND, reverting the patches that did the rework of workqueues fixed the bugs that I was hitting.

Lets fix CPU hotplug today, and leave the redesign of workqueues for another day.

Comments,

-- Steve