[Devel] [PATCH hci-8.2 2/7] dm-qcow2: arm the ENOSPC timer only for the first delayed request
Konstantin Khorenko
khorenko at virtuozzo.com
Fri Nov 27 14:51:34 MSK 2026
Item 7 of the cover letter reply.
On Fri, 27 Nov 2026 12:15:45 +0100, Alexander Ivanov wrote:
> + first = list_empty(&tgt->enospc_qios);
> list_add_tail(&qio->link, &tgt->enospc_qios);
> unlock:
> - if (delayed)
> + if (first)
> mod_timer(&tgt->enospc_timer, jiffies + ENOSPC_TIMEOUT_JI);
Arm the timer right after list_add_tail(), as patch 4 does in dm-ploop,
and drop the "first" local: the wants_suspend path jumps to unlock:
with first always false, so the check there only hides that.
--
Konstantin Khorenko,
Virtuozzo Linux Kernel Team
More information about the Devel
mailing list