[LTP] [PATCH] tst_umount: Retry open() after umount to handle delayed device release
Cyril Hrubis
chrubis@suse.cz
Mon Aug 11 16:20:41 CEST 2025
Hi!
> From the bpfstrace logs, there seems udisksd listening to the same
> udevevents and probes the device via libblockdev/blkid, performing
> real O_RDONLY opens (flags=0x0). These O_RDONLY opens from
> udisksd race with mkfs.ext3’s O_EXCL open, intermittently causing
> “apparently in use by the system” (EBUSY).
>
> Does this analysis sound reasonable to you?
Yes. So we have another daemon that probes block devices on each change.
I suppose that turning off udisksd fixes the problem right? If that is
so I would be inclined just to print a message to turn off udisksd if
mkfs on a loop device fails...
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list