From: Konstantin Khorenko <khorenko@virtuozzo.com>
To: Alexander Ivanov <alexander.ivanov@virtuozzo.com>
Cc: devel@openvz.org
Subject: Re: [Devel] [PATCH hci-8.2 v11 0/9] dm-ploop: give back unused tail of top delta on suspend
Date: Fri, 20 Nov 2026 12:03:26 +0100 [thread overview]
Message-ID: <179517260667.332110.4074470353391429477.b4-review@b4> (raw)
In-Reply-To: <20261120081702.3721349-1-alexander.ivanov@virtuozzo.com>
I won't apply this version, please send v12 on top of hci-8.2 with the
changes below.
Both v10 items are done, thanks: 8/9 wakes the waiters in
ploop_drop_prealloc() and its message reads well. What is left comes
from hci-8.2 moving on. Denis' two base patches are committed there,
and so is 27b031f30a9a9 ("dm-ploop: fix image I/O completions running
on a freed ploop"); v11 does not apply, 6/9 fails in ploop_destroy().
1. Rebase on hci-8.2 (branch-rh10-6.12.0-211.75.1.26.x.vz10-ovz).
Patches 1-5 and 7-9 apply with offsets only.
2. 6/9: drop the use-after-free part. 27b031f30a9a9 already closes it:
the BAT write completion, the last inflight_md decrement, its
wakeup and ploop_free_piwb() all run inside pio->complete(), before
ploop_aio_do_completion() drops file_io_ref, and ploop_destroy()
kills that ref and waits for it. Keep ploop_destroy() as hci-8.2
has it; no inflight_md wait, no inflight_md_wq.lock, no
ploop_dec_inflight_md(), no reorder.
3. 6/9: keep the wakeup change, it is needed by 8/9. hci-8.2 wakes
inflight_md_wq with wake_up_interruptible() in ploop_put_piwb() and
ploop_break_bat_update(), which does not wake the uninterruptible
wait_event() calls 8/9 adds in postsuspend and preresume: a suspend
that catches the last BAT write in flight sleeps forever with
md->suspend_lock held. Make both wake_up(), rewrite the message
for that, drop its Fixes tags and Andrey's Reviewed-by, as it is a
different patch now. Keep it a separate patch before 8/9.
4. Cover letter: both of Denis' patches are in, drop "which go in
before it", and update the sentence on patches 4-6.
On Fri, 20 Nov 2026 09:16:53 +0100, Alexander Ivanov wrote:
> The series is based on two patches of Denis V. Lunev, which go in
> before it:
Item 4: both are committed in hci-8.2 now.
--
Konstantin Khorenko,
Virtuozzo Linux Kernel Team
_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel
prev parent reply other threads:[~2026-11-20 11:04 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-20 8:16 Alexander Ivanov
2026-11-20 8:16 ` [Devel] [PATCH hci-8.2 v11 1/9] dm-ploop: reject a delta header whose BAT does not cover the target Alexander Ivanov
2026-11-20 8:16 ` [Devel] [PATCH hci-8.2 v11 2/9] dm-ploop: reject empty deltas Alexander Ivanov
2026-11-20 8:16 ` [Devel] [PATCH hci-8.2 v11 3/9] dm-ploop: set delta is_raw before applying its mappings Alexander Ivanov
2026-11-20 8:16 ` [Devel] [PATCH hci-8.2 v11 4/9] dm-ploop: factor out ploop_read_delta() from ploop_add_delta() Alexander Ivanov
2026-11-20 8:16 ` [Devel] [PATCH hci-8.2 v11 5/9] dm-ploop: take bat_lock around md page lookup in ploop_llseek_hole() Alexander Ivanov
2026-11-20 8:16 ` [Devel] [PATCH hci-8.2 v11 6/9] dm-ploop: fix use-after-free on the last inflight_md decrement Alexander Ivanov
2026-11-20 11:03 ` Konstantin Khorenko
2026-11-20 8:17 ` [Devel] [PATCH hci-8.2 v11 7/9] dm-ploop: fix flip_upper_deltas racing with resume Alexander Ivanov
2026-11-20 8:17 ` [Devel] [PATCH hci-8.2 v11 8/9] dm-ploop: reload metadata on resume Alexander Ivanov
2026-11-20 8:17 ` [Devel] [PATCH hci-8.2 v11 9/9] dm-ploop: truncate unused tail of top delta on suspend Alexander Ivanov
2026-11-20 11:03 ` Konstantin Khorenko [this message]
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=179517260667.332110.4074470353391429477.b4-review@b4 \
--to=khorenko@virtuozzo.com \
--cc=alexander.ivanov@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.