[Devel] [PATCH hci-8.2 9/9] dm: default dm-qcow2 devices to no I/O scheduler
Konstantin Khorenko
khorenko at virtuozzo.com
Wed Nov 25 14:19:44 MSK 2026
I won't apply this version, please send v2 with the changes below.
- Say that ploop devices lose the scheduler too, or keep them on it:
item 2.
- A high bit for the vz-only flag: item 3.
- Say that elevator merging is lost: item 4 of the cover letter reply.
On Wed, 25 Nov 2026 02:25:25 +0100, Denis V. Lunev wrote:
> libploop creates qcow2 devices and ploop_dmcreate_stub() devices with a
> zero-rq table and loads the real table later. Set the flag on zero-rq
> as well because the scheduler is chosen when the device is created.
Item 2: ploop_dmcreate_stub() creates ploop devices too, so they all
end up on none, while a device created directly with a ploop table
stays on mq-deadline. The subject and the cover letter speak of
dm-qcow2 only, and ploop was not measured. Either say it and why none
is right for ploop as well, or let libploop pick the scheduler per
format.
> +#define DM_TARGET_NO_SCHED_BY_DEFAULT 0x00000800
Item 3: 0x800 is the next bit mainline hands out, so the next backport
of a new DM_TARGET_ flag collides with it. Take a high bit.
> mq-deadline arbitrates between I/O priority classes at dispatch. With
> none, the dm device loses that arbitration. dm-qcow2 issues image I/O
Item 4: it also loses merging of adjacent requests that miss the plug,
and the read-over-write preference.
--
Konstantin Khorenko,
Virtuozzo Linux Kernel Team
More information about the Devel
mailing list