[Devel] [PATCH hci-8.2 v2 3/3] dm/push_backup: stop the backup when the process that started it exits

no-reply at sashiko.virtuozzo.com no-reply at sashiko.virtuozzo.com
Wed Nov 18 17:04:04 MSK 2026


> When ploop-backup dies, the push_backup target does not notice it. The
> writes that wait for a backup stay postponed until the deadline timer
> fires. The timeout is a required argument of push_backup_start, and
> ploop-backup passes 60 seconds by default. During that time every
> writer to the device blocks, and so does every sync() on the host,
> because writeback waits for the postponed requests. We cannot simply
> lower the timeout, because a live ploop-backup can legitimately stall
> on IO for tens of seconds.
> 
> Add an optional argument to push_backup_start:
> 
>   push_backup_start <timeout> <mask|0> fail_on_process_exit
> 
> With this argument the target watches the process that sent the
> message. To do that we add our own entry to the pid->wait_pidfd wait
> [ ... ]
> 
> Feature: dm-backup: push backup target driver
> Suggested-by: Andrey Zhadchenko <andrey.zhadchenko at virtuozzo.com>
> Reviewed-by: Denis V. Lunev <den at openvz.org>
> Signed-off-by: Vasileios Almpanis <vasileios.almpanis at virtuozzo.com>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.vzint.dev/#/patchset/20261118-vstor-153891-v2-0-e91753150b91@virtuozzo.com?part=3




More information about the Devel mailing list