[LTP] [PATCH RFC] lib: invoke do_cleanup if failed to kill test processes
Mon Mar 18 13:28:52 CET 2019
> LTP liabary should invoke do_cleanup function promptly when killing
> test process doesn't work, especially useful to testcase do mount or
> format devices in their setup phase. Otherwise, that abnormal broken
> will effect the testcase which LTP is preparing to execute in next.
Actually this code should be executed only if the test process got stuck
in the kernel and in such case I doubt that there is a value in doing
the cleanup as the cleanup code will likely get stuck there as well.
The rationale is that if process that uses particular mount point is
stuck in the kernel the umount() will likely get stuck there as well and
there is no point in doing anything else than rebooting the machine.
More information about the ltp