[Devel] [PATCH hci-8.2 v9 0/9] dm-ploop: give back unused tail of top delta on suspend
Konstantin Khorenko
khorenko at virtuozzo.com
Thu Nov 19 15:11:47 MSK 2026
I won't apply this version, please send v10 with the changes below.
All four v8 items are done, thanks; resize and merge of a suspended
device work again. What is left:
1. 8/9: a write message that holds ctl_rwsem while postsuspend runs
ploop_stop_prealloc() still sees ->suspended false, so it neither
drops nor waits, and its look-ahead prealloc request stays pending
outside standby too. Drop once more under ctl_rwsem right before
->suspended = true, and wait after up_write() unless in standby.
2. 8/9: the comment "Drop pending prealloc requests ... and wait for
the one in flight" sits on ploop_drop_prealloc(), which only drops;
it belongs to ploop_stop_prealloc(). The flip comment "In standby,
postsuspend may leave a prealloc in flight" names one case only: a
flip right after a resize can see the resize's prealloc in flight,
as the message waits for it after up_write().
3. 9/9: the "Truncate the top delta ..." paragraph is six sentences
and names the dirty md skip twice; split it at "Skip read-only
devices".
4. Rebase on "dm-ploop: fix a double fput of the delta file when
ploop_add_delta() fails" (and "dm-ploop: allocate the mtfile array
as pointers, not struct files"), which go in before this series:
4/9 conflicts with them in ploop_add_delta(), and taking 4/9 as is
brings the double fput back. Keep "deltas[level].file = file;"
after the clone loop, as the fix has it.
On Thu, 19 Nov 2026 12:34:37 +0100, Alexander Ivanov wrote:
> The corresponding ploop userspace changes are merged:
> https://bitbucket.org/openvz/ploop.ovz/pull-requests/486
Fine, the reload on resume does pick up a tail trimmed by old
userspace.
--
Konstantin Khorenko,
Virtuozzo Linux Kernel Team
More information about the Devel
mailing list