freezer,umh: Clean up freezer/initrd interaction
authorPeter Zijlstra <peterz@infradead.org>
Mon, 22 Aug 2022 11:18:18 +0000 (13:18 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Wed, 7 Sep 2022 19:53:48 +0000 (21:53 +0200)
commit1fbcaa923ce2d7e6de17abd74fa076dc1e0be1a2
treef6b83d9a4edbd1c8cdc2ba1b48635fa2096a2eb6
parent5950e5d574c636a07dd21a872c2f8b41f6d20c55
freezer,umh: Clean up freezer/initrd interaction

handle_initrd() marks itself as PF_FREEZER_SKIP in order to ensure
that the UMH, which is going to freeze the system, doesn't
indefinitely wait for it's caller.

Rework things by adding UMH_FREEZABLE to indicate the completion is
freezable.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://lore.kernel.org/r/20220822114648.791019324@infradead.org
include/linux/umh.h
init/do_mounts_initrd.c
kernel/umh.c