[Devel] [PATCH hci-8.2 8/9] dm-ploop: requeue requests when the request pool is empty
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.
- Requeue or defer a request whose split pio allocation fails: item 1
of the cover letter reply.
On Wed, 25 Nov 2026 02:25:24 +0100, Denis V. Lunev wrote:
> prq = mempool_alloc(ploop->prq_pool, GFP_ATOMIC);
> if (!prq)
> - return DM_MAPIO_KILL;
> + return DM_MAPIO_REQUEUE;
This covers the prq only. ploop_split_and_chain_pio() takes the split
pios from pio_pool, also 512 entries and GFP_ATOMIC, and when that
fails ploop_prepare_one_embedded_pio() ends the request with
BLK_STS_RESOURCE, an I/O error in the container. With no scheduler
after 9/9 the device can have far more requests in flight than that
reserve was sized for, so this path becomes reachable. The bvec
allocation in the same function already defers to blocking context;
the split can do the same.
--
Konstantin Khorenko,
Virtuozzo Linux Kernel Team
More information about the Devel
mailing list