[Devel] [PATCH hci-8.2 v3 4/4] drivers/vhost/blk: add the VHOST_BLK_RESUBMIT ioctl
Konstantin Khorenko
khorenko at virtuozzo.com
Tue Dec 1 12:19:07 MSK 2026
Items 3, 4 and 5 of the cover letter reply.
On Tue, 1 Dec 2026 09:50:20 +0100, Alexander Ivanov wrote:
> + * error and type are ignored, reserved must be 0. On error, nr is set to the
> + * index of the entry that failed; the entries before it were resubmitted.
> + * On -ENOMEM pass the same entry again; -ENODEV and -EINTR fail the rest as
> + * well. Any other error concerns only that entry: the ones after it may still
> + * be passed from nr + 1. Fails with -ENODEV until the backend is set.
- -EPERM, -EFAULT on the header and -EINVAL for reserved fail before
the loop and leave nr as passed in. By this rule QEMU goes on from
nr + 1, past the end, and resubmits nothing.
- -EFAULT from copy_from_user() of reqs[i] is not about that entry:
it was never read. Put it with -ENODEV and -EINTR.
- Say that a skipped entry's guest request is never completed, so
QEMU knows what skipping costs.
-ENODEV is named twice; one mention is enough.
--
Konstantin Khorenko,
Virtuozzo Linux Kernel Team
More information about the Devel
mailing list