[Devel] [PATCH hci-8.1 v2 5/9] drivers/md/dm-qcow2: report held requests with an IO_ERROR uevent

no-reply at sashiko.virtuozzo.com no-reply at sashiko.virtuozzo.com
Tue Nov 17 13:29:44 MSK 2026


> QEMU is to pause the VM when dm-qcow2 holds a failed request, but it
> cannot use dm_table_event(): waiting for dm events needs dm ioctls
> and CAP_SYS_ADMIN, which QEMU does not have. libvirt already passes
> QEMU a NETLINK_KOBJECT_UEVENT socket to watch the vhost-blk disk for
> RESIZE=1 change events.
> 
> Send a change uevent on the dm disk with
> 
>   IO_ERROR=1
>   IO_ERROR_OP=read|write
>   IO_ERROR_ERRNO=<positive errno>
> 
> when the held list turns non-empty. A periodic retry that fails
> again repopulates the list, so the event is repeated while the error
> persists and a lost netlink message is not fatal. This applies to
> [ ... ]
> "event_io_error <op> <errno>".
> 
> https://virtuozzo.atlassian.net/browse/VSTOR-152175
> Feature: dm-qcow2: block device over QCOW2 files driver
> Signed-off-by: Alexander Ivanov <alexander.ivanov at virtuozzo.com>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.vzint.dev/#/patchset/20261117101026.3071579-1-alexander.ivanov@virtuozzo.com?part=5




More information about the Devel mailing list