[LTP] [PATCH] tst_detach_device: Clear leftover partitions

Andrea Cervesato andrea.cervesato@suse.com
Tue Dec 16 13:19:41 CET 2025


On Tue Dec 16, 2025 at 1:16 PM CET, Martin Doucha wrote:
> On 12/16/25 13:13, Andrea Cervesato wrote:
> > In general the code looks good, but the sentence "Some kernels have a
> > race condition during loop device release" sounds like a kernel bug
> > that we are working around with this feature. I know probably this
> > is not the case, but if I read the sentence this is what I guess.
>
> Yes, this is a kernel bug and yes, we are working around it. But the 
> workaround is not there to hide it, it's there to flag the bug in the 
> appropriate test which triggered it and prevent other unrelated tests 
> from failing. Think of it as extra thorough post-test environment cleanup.

Ok thanks, now it's more clear. It would be nice to add this comment to
the commit message.

Reviewed-by: Andrea Cervesato <andrea.cervesato@suse.com>

-- 
Andrea Cervesato
SUSE QE Automation Engineer Linux
andrea.cervesato@suse.com



More information about the ltp mailing list