[Devel] [PATCH hci-8.1 v7 09/10] dm-ploop: reload metadata on resume

Konstantin Khorenko khorenko at virtuozzo.com
Tue Nov 17 21:23:02 MSK 2026


I won't apply this version, please send v8 with the changes below.

On Tue, 17 Nov 2026 18:17:43 +0100, Alexander Ivanov wrote:
> +void ploop_wait_prealloc(struct ploop *ploop)
> +{
> +	wait_event_killable(ploop->dispatcher_wq_prealloc,
> +			    ploop_no_pending_prealloc(ploop));
> +}

Items 2-4 of the cover letter reply. Killing this wait lets the old
allocator truncate the file to a stale size after the next table has
grown it; the comment in ploop_postsuspend() admits it, but that loses
data on the next load instead of hanging. Also wait for inflight_md in
ploop_preresume(), as postsuspend does.

-- 
Konstantin Khorenko,
Virtuozzo Linux Kernel Team



More information about the Devel mailing list