[Devel] [PATCH hci-8.1 v2 4/7] dm-qcow2: add per-qio work infrastructure
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:26 +0300, Andrey Zhadchenko wrote:
> + prepare_one_embedded_qio(qio, &deferred_qios);
Item 4 of the cover letter reply: answer Sashiko's qio_pool remark.
Why: preparation used to run in main kwork only, one request at a
time. Now several preparers each allocate all splits of their request
from tgt->qio_pool before handing any of them on. Under memory
pressure they can share out the reserve and all sleep in
mempool_alloc() waiting for each other. Say why this cannot stall, or
allocate the splits without sleeping first and serialize the sleeping
fallback, as dm-crypt does.
--
Konstantin Khorenko,
Virtuozzo Linux Kernel Team
More information about the Devel
mailing list