[Devel] [PATCH hci-8.2 v10 0/9] dm-ploop: give back unused tail of top delta on suspend
Konstantin Khorenko
khorenko at virtuozzo.com
Thu Nov 19 18:50:27 MSK 2026
I won't apply this version, please send v11 with the changes below.
All four v9 items are done, thanks, and so is Sashiko's v9 Medium:
preresume now waits for the prealloc and always reloads outside
standby. 3/9, 4/9 and 9/9 are fine as they are. What is left, all in
8/9:
1. ploop_drop_prealloc() clears prealloc_size without a wake_up() of
dispatcher_wq_prealloc. A waiter in ploop_allocate_cluster() or in
a resize sleeps until the allocator wakes it, and the allocator
wakes only after it took a non-zero request. If the drop comes
first, the waiter's condition is true but nobody wakes it: the
resize, or a runner doing a merge COW, sleeps forever, and
postsuspend then hangs in down_write(&ctl_rwsem) under the
suspend lock. Wake the queue in ploop_drop_prealloc() when it
cleared a request.
2. Commit message: "would make the reload skip silently" is stale, v10
warns on that skip. The "Drop the pending requests on postsuspend"
paragraph is five sentences after "Drop them once more ..." was
spliced in; split it there, and say who "Both" are ("Postsuspend
and messages wait ...").
On Thu, 19 Nov 2026 16:15:38 +0100, Alexander Ivanov wrote:
> v10:
> - Rebase on the two patches above.
Checked: 4/9 keeps "deltas[level].file = file;" after the clone
loop and no error path brings the double fput back.
--
Konstantin Khorenko,
Virtuozzo Linux Kernel Team
More information about the Devel
mailing list