[Devel] [PATCH hci-8.2 v10 0/9] dm-ploop: give back unused tail of top delta on suspend
Alexander Ivanov
alexander.ivanov at virtuozzo.com
Fri Nov 20 11:17:08 MSK 2026
On 11/19/26 16:50, Konstantin Khorenko wrote:
> 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.
Fixed.
> 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 ...").
Reworded the commit message.
>
> 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.
>
More information about the Devel
mailing list