From: Konstantin Khorenko <khorenko@virtuozzo.com>
To: Vasileios Almpanis <vasileios.almpanis@virtuozzo.com>
Cc: devel@openvz.org, Den Lunev <den@virtuozzo.com>
Subject: Re: [Devel] [PATCH hci-8.2 2/3] dm/push_backup: free the bitmaps of an expired session on restart
Date: Wed, 25 Nov 2026 12:47:50 +0100 [thread overview]
Message-ID: <179560727089.30071.5952505622071343801.b4-review@b4> (raw)
In-Reply-To: <20261125-push-backup-fixes-v1-2-8d5cc55c30a1@virtuozzo.com>
I won't apply this version, please send v2 with the changes below.
- The old bitmaps are never freed, not "lost until the target is
destroyed": item 5 of the cover letter reply.
- Drop the 32 GiB example.
- Narrow the last sentence: a failed start still changes the timeout.
On Wed, 25 Nov 2026 11:29:52 +0000, Vasileios Almpanis wrote:
> bitmaps are lost until the target is destroyed, because only
> push_backup_stop() and pb_destroy() free them, and they see only the
> current pointers.
pb_destroy() frees only the current pointers, so the old bitmaps are
never freed; the sentence contradicts itself.
> Each bitmap takes one bit per cluster. For example, on a 32 GiB device
> with a cluster size of 1 sector each bitmap is 8 MiB, so every restart
The first sentence already says what the leak scales with; ploop sets
up the target with the image's cluster size, so the 1-sector example
overstates it.
> dropped. If setting up the new session fails, the expired session
> keeps its bitmaps and its expired state.
setup_pb() writes timeout_in_jiffies and deadline_jiffies before the
allocations, so after a failed start the status shows the expired
session with the timeout of the failed one. Either move the two stores
under pb->lock with the swap, or say "keeps its bitmaps".
--
Konstantin Khorenko,
Virtuozzo Linux Kernel Team
_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel
next prev parent reply other threads:[~2026-11-25 11:49 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-25 11:29 [Devel] [PATCH hci-8.2 0/3] dm/push_backup: fix two old bugs and remove the unused messages Vasileios Almpanis
2026-11-25 11:29 ` [Devel] [PATCH hci-8.2 1/3] dm/push_backup: reject a cluster size of 0 Vasileios Almpanis
2026-11-25 11:29 ` [Devel] [PATCH hci-8.2 2/3] dm/push_backup: free the bitmaps of an expired session on restart Vasileios Almpanis
2026-11-25 11:47 ` Konstantin Khorenko [this message]
2026-11-25 11:29 ` [Devel] [PATCH hci-8.2 3/3] dm/push_backup: remove the push_backup_read and push_backup_write messages Vasileios Almpanis
2026-11-25 11:47 ` Konstantin Khorenko
2026-11-25 11:47 ` [Devel] [PATCH hci-8.2 0/3] dm/push_backup: fix two old bugs and remove the unused messages Konstantin Khorenko
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=179560727089.30071.5952505622071343801.b4-review@b4 \
--to=khorenko@virtuozzo.com \
--cc=den@virtuozzo.com \
--cc=devel@openvz.org \
--cc=vasileios.almpanis@virtuozzo.com \
/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