mirror of
https://github.com/dynup/kpatch
synced 2025-02-19 19:26:53 +00:00
kpatch: show stalled processes on failed transition
Call show_stalled_processes() before unloading the patch on stalled transition. Signed-off-by: Artem Savkov <asavkov@redhat.com>
This commit is contained in:
parent
7edcd7b36c
commit
c3f9f4be2d
@ -291,6 +291,7 @@ load_module () {
|
||||
echo "module already loaded, re-enabling"
|
||||
echo 1 > "${moddir}/enabled" || die "failed to re-enable module $modname"
|
||||
if ! wait_for_patch_transition "$modname" ; then
|
||||
show_stalled_processes
|
||||
echo "module $modname did not complete its transition, disabling..."
|
||||
echo 0 > "${moddir}/enabled" || die "failed to disable module $modname"
|
||||
wait_for_patch_transition "$modname"
|
||||
@ -327,6 +328,7 @@ load_module () {
|
||||
fi
|
||||
|
||||
if ! wait_for_patch_transition "$modname" ; then
|
||||
show_stalled_processes
|
||||
echo "module $modname did not complete its transition, unloading..."
|
||||
unload_module "$modname"
|
||||
die "error: failed to load module $modname (transition stalled)"
|
||||
|
Loading…
Reference in New Issue
Block a user