Skip to content

stop_machine: create kstop threads only when needed

Heiko Carstens lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2stop_machine: introduce stop_machine_create/destroy.include/linux/stop_machine.h kernel/cpu.c kernel/stop_machine.c+72 -113 replies
2/2module: convert to stop_machine_create/destroy.kernel/module.c+21 -20 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [patch 0/2] stop_machine: create kstop threads only when needed

Introduce stop_machine_create/destroy. With this interface subsystems that need a non-failing stop_machine environment can create the stop_machine threads before actually calling stop_machine. When the threads aren't needed anymore they can be killed with stop_machine_destroy again.

When stop_machine gets called and the threads aren't present they will be created and destroyed automatically.

This restores the old behaviour of stop_machine from 2.6.27 and thus we get rid of the normally not needed kstop threads.

The second patch converts the module loader/unloder code to the new interface, since it needs a non-failing stop_machine infrastructure.

Looks like there are more users that need a non-failing version. I'll take care of them when I'm back from vacation.