Here we have some tricky case - ATM we are using suspend with
flushing when changing DM tables for cache volume - but this
can take too much time with our delayed device.
So trying to minimize chance to hit this race on very fast machines.
dd if="$DM_DEV_DIR/$vg/$lv1" of=/dev/null bs=1M count=$SIZE_MB iflag=direct || true
done
-aux delay_dev "$dev1" 0 200 "$(get first_extent_sector "$dev1"):"
+aux delay_dev "$dev1" 0 100 "$(get first_extent_sector "$dev1"):"
dd if=/dev/zero of="$DM_DEV_DIR/$vg/$lv1" bs=1M count=$SIZE_MB
lvdisplay --maps $vg
# should be running in 'Flushing' loop and just 1 KILL should
# cause abortion of flushing
kill -INT $PID_CONVERT
+# extra time in case we are in some slow 'flushing' suspend
+sleep 0.5
aux enable_dev "$dev2"
wait "$PID_CONVERT" || true
# close 'tee' descritor