From: Alexander Ivanov <alexander.ivanov@virtuozzo.com>
To: andrey.zhadchenko@virtuozzo.com
Cc: devel@openvz.org
Subject: [Devel] [PATCH hci-8.2 v2 4/7] dm-ploop: arm the ENOSPC timer only for the first delayed request
Date: Mon, 30 Nov 2026 17:24:53 +0100 [thread overview]
Message-ID: <20261130162456.1822406-5-alexander.ivanov@virtuozzo.com> (raw)
In-Reply-To: <20261130162456.1822406-1-alexander.ivanov@virtuozzo.com>
Every delayed pio rearms ploop->enospc_timer, so while new requests
keep failing the delayed ones are never retried. A container that keeps
writing to a full disk is enough to postpone the retry indefinitely.
Arm the timer when llist_add() finds the delay list empty, so the
delayed requests are retried a fixed period after the first of them
failed.
https://virtuozzo.atlassian.net/browse/VSTOR-152175
Fixes: 90bb85536272 ("dm-ploop: Add ploop target driver")
Feature: dm-ploop: ploop target driver
Signed-off-by: Alexander Ivanov <alexander.ivanov@virtuozzo.com>
---
drivers/md/dm-ploop-map.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/md/dm-ploop-map.c b/drivers/md/dm-ploop-map.c
index c62b414862b1..213f32a8e18d 100644
--- a/drivers/md/dm-ploop-map.c
+++ b/drivers/md/dm-ploop-map.c
@@ -194,9 +194,8 @@ static bool ploop_try_delay_enospc(struct ploop_rq *prq, struct pio *pio)
pr_err_once(PL_FMT("underlying disk is almost full"),
ploop_device_name(ploop));
ploop->event_enospc = true;
- llist_add((struct llist_node *)(&pio->list), &ploop->enospc_pios);
-
- mod_timer(&ploop->enospc_timer, jiffies + PLOOP_ENOSPC_TIMEOUT);
+ if (llist_add((struct llist_node *)(&pio->list), &ploop->enospc_pios))
+ mod_timer(&ploop->enospc_timer, jiffies + PLOOP_ENOSPC_TIMEOUT);
schedule_work(&ploop->event_work);
spin_unlock_irqrestore(&ploop->deferred_lock, flags);
--
2.53.0
_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel
next prev parent reply other threads:[~2026-11-30 16:26 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-30 16:24 [Devel] [PATCH hci-8.2 v2 0/7] dm-qcow2, dm-ploop: report ENOSPC at once for vhost-blk disks Alexander Ivanov
2026-11-30 16:24 ` [Devel] [PATCH hci-8.2 v2 1/7] dm-qcow2: always resubmit delayed ENOSPC requests in presuspend Alexander Ivanov
2026-12-01 1:08 ` no-reply
2026-11-30 16:24 ` [Devel] [PATCH hci-8.2 v2 2/7] dm-qcow2: arm the ENOSPC timer only for the first delayed request Alexander Ivanov
2026-12-01 1:09 ` no-reply
2026-11-30 16:24 ` [Devel] [PATCH hci-8.2 v2 3/7] dm-qcow2: drop the WARN on a read failing with ENOSPC Alexander Ivanov
2026-12-01 1:10 ` no-reply
2026-11-30 16:24 ` Alexander Ivanov [this message]
2026-12-01 1:11 ` [Devel] [PATCH hci-8.2 v2 4/7] dm-ploop: arm the ENOSPC timer only for the first delayed request no-reply
2026-11-30 16:24 ` [Devel] [PATCH hci-8.2 v2 5/7] dm-ploop: drop the WARN on a non-write request failing with ENOSPC Alexander Ivanov
2026-12-01 1:11 ` no-reply
2026-11-30 16:24 ` [Devel] [PATCH hci-8.2 v2 6/7] dm-qcow2: add the report_enospc table argument Alexander Ivanov
2026-12-01 1:14 ` no-reply
2026-12-01 8:07 ` Alexander Ivanov
2026-11-30 16:24 ` [Devel] [PATCH hci-8.2 v2 7/7] dm-ploop: " Alexander Ivanov
2026-12-01 1:15 ` no-reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261130162456.1822406-5-alexander.ivanov@virtuozzo.com \
--to=alexander.ivanov@virtuozzo.com \
--cc=andrey.zhadchenko@virtuozzo.com \
--cc=devel@openvz.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox