[LTP] [PATCH] tst_detach_device: Clear leftover partitions

Martin Doucha mdoucha@suse.cz
Tue Dec 16 13:16:47 CET 2025


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.

-- 
Martin Doucha   mdoucha@suse.cz
SW Quality Engineer
SUSE LINUX, s.r.o.
CORSO IIa
Krizikova 148/34
186 00 Prague 8
Czech Republic


More information about the ltp mailing list