On Jul 11, 2024 / 10:59, Bart Van Assche wrote: > On 7/11/24 3:39 AM, Shinichiro Kawasaki wrote: > > It showed "Comm: (udev-worker)" is the process which keeps the DM > > device open. [ ... ] Just adding "udevadm settle" before "dmsetup > > remove" will avoid the failure. > > I'm OK with either the retry loop from the patch at the start of this > email thread or adding "udevadm settle" Thanks Bart. I think "udevadm settle" is the better. Will post v2.