[Devel] [PATCH hci-8.1 v2 6/7] dm-qcow2: process fast path qios in per-cpu batches on a workqueue
Konstantin Khorenko
khorenko at virtuozzo.com
Tue Nov 10 20:56:36 MSK 2026
I won't apply this version, please send v3 with the changes below.
On Tue, 10 Nov 2026 14:46:28 +0300, Andrey Zhadchenko wrote:
> CPUs are still processed in parallel. This is fine, since a fast path
> qio is only mapped and submitted as direct AIO: O_DIRECT is enforced
> for every delta. The exception is a partial discard, which punches
Item 4 of the cover letter reply: answer Sashiko's remark that
preparation sleeps too, or add it here.
Why: before the qio is mapped, prepare_one_embedded_qio() allocates
the bvec array with kvmalloc_array(GFP_NOIO) and the splits with
mempool_alloc(), and both sleep under memory pressure. Everything
queued after it on that CPU waits. The batching code itself is
correct.
--
Konstantin Khorenko,
Virtuozzo Linux Kernel Team
More information about the Devel
mailing list