[LTP] [PATCH RFC] lib: invoke do_cleanup if failed to kill test processes

Cyril Hrubis chrubis@suse.cz
Mon Mar 18 13:28:52 CET 2019


Hi!
> 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.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list