[Devel] [PATCH hci-8.2 v9 8/9] dm-ploop: reload metadata on resume

Alexander Ivanov alexander.ivanov at virtuozzo.com
Thu Nov 19 16:51:30 MSK 2026


> I won't apply this version, please send v10, items 1 and 2 of the
> cover letter reply.
>
> On Thu, 19 Nov 2026 12:34:45 +0100, Alexander Ivanov wrote:
>> a ploop of a reloaded table. Only the operation already in flight is
>> left unfenced. Messages to the suspended device (e.g. resize) still get
> Not only that one: ploop_postsuspend() calls ploop_stop_prealloc()
> before it takes ctl_rwsem and sets ->suspended, so a resize running in
> between ends with ->suspended false, does not drop its request, and the
> old allocator can still ftruncate() the top delta after the next table
> has grown it. libploop does not send a message during suspend, but the
> sentence should hold.
Fixed in the code rather than the wording: postsuspend now drops pending
requests once more under ctl_rwsem together with setting ->suspended, and
waits for the allocator after releasing the lock, the same as the tail of
ploop_message(). ploop_set_suspended() is gone, as postsuspend was its
only user. The commit message describes the extra drop.


More information about the Devel mailing list