[Devel] [PATCH hci-8.2 3/3] dm/push_backup: remove the push_backup_read and push_backup_write messages
Konstantin Khorenko
khorenko at virtuozzo.com
Wed Nov 25 14:47:50 MSK 2026
I won't apply this version, please send v2 with the changes below.
- The ploop test and older ploop-backup still send these messages:
items 1 and 2 of the cover letter reply.
- Drop the push_backup_stop pre-step in pb_message(): item 3.
- Bump the target version, drop the dead check: item 4.
On Wed, 25 Nov 2026 11:29:53 +0000, Vasileios Almpanis wrote:
> The current ploop-backup gets the ranges to back up and reports the
> backed up ranges through the event fd, see commit d723a1617e61
> ("dm/push_backup: add event file descriptor interface"). It does not
> send the push_backup_read and push_backup_write messages anymore.
Item 1: ploop origin/hci-dev test/tests/test_ploop_tg.py,
test_ploop_tg_push_backup_io_should_work_when_backup_started, sends
both through dmsetup message and fails with ENOTSUPP after this patch.
Item 2: the fd exists only since d723a1617e61, so any ploop-backup
built before it still uses these messages. A node updated to this
kernel before ploop-backup breaks backups.
Item 3: the block in pb_message() that clears pb->alive and wakes the
waiters before taking ctl_rwsem came with 20815dd41f13 to kick a
push_backup_read that slept holding ctl_rwsem. Nothing sleeps under it
now, and the block leaves a window where a push_backup_start that comes
in between is torn down by the waiting stop. The argc check then goes
back into the stop branch.
Item 4: the version went up with every interface change before (1.1.0
for the fd, 1.2.0 for fail_on_process_exit); this one removes two
messages. push_backup_write() has a single caller, pb_fd_write(),
which never passes NULL, and pb->nr_clus is read before the check.
--
Konstantin Khorenko,
Virtuozzo Linux Kernel Team
More information about the Devel
mailing list