[Devel] [PATCH VZ9 1/5] dm-qcow2: fix warning about wrong printk format for size_t

2025-02-27 Thread Pavel Tikhomirov
In file included from ./include/linux/kernel.h:20, from ./include/linux/list.h:9, from ./include/linux/preempt.h:12, from ./include/linux/spinlock.h:56, from drivers/md/dm-qcow2-map.c:5: drivers/md/dm-qcow2-map.c: In fu

[Devel] [PATCH v2 VZ9 5/5] dm-qcow2: add merge_backward progress command

2025-02-27 Thread Pavel Tikhomirov
This allows to see progress of backward merge. It shows the stage we are at and for iterative stages it provides progress in form of how many iteratious are done and how many iterations there are in total. https://virtuozzo.atlassian.net/browse/VSTOR-100466 Signed-off-by: Pavel Tikhomirov --- dr

[Devel] [PATCH v2 VZ9 4/5] dm-qcow2: add merge_backward set_eventfd command

2025-02-27 Thread Pavel Tikhomirov
This eventfd can be used to get an event when merge_backward start work have finished and is waiting for completion. Note: The eventfd can be changed even while work is running. Locking: The backward_merge.eventfd_ctx is protected from being released by tgt->ctl_mutex. https://virtuozzo.atlassi

[Devel] [PATCH v2 VZ9 1/5] dm-qcow2: fix warning about wrong printk format for size_t

2025-02-27 Thread Pavel Tikhomirov
In file included from ./include/linux/kernel.h:20, from ./include/linux/list.h:9, from ./include/linux/preempt.h:12, from ./include/linux/spinlock.h:56, from drivers/md/dm-qcow2-map.c:5: drivers/md/dm-qcow2-map.c: In fu

[Devel] [PATCH v2 VZ9 3/5] dm-qcow2: make merge_backward command asyncronous

2025-02-27 Thread Pavel Tikhomirov
This adds merge_backward "start", "complete" and "cancel" commands. By that we are able to split single merge_backward into two stages: start asyncronous merging and completion. That can be usefull for restarting qemu process while allowing backward merging to run asyncronously in kernel. The "sta

[Devel] [PATCH v2 VZ9 2/5] dm-qcow2: cleanup error handling in qcow2_merge_backward

2025-02-27 Thread Pavel Tikhomirov
The label "out" is excess, lets remove it in accordance with: "If there is no cleanup needed then just return directly." https://www.kernel.org/doc/html/v4.10/process/coding-style.html#centralized-exiting-of-functions https://virtuozzo.atlassian.net/browse/VSTOR-100466 Signed-off-by: Pavel Tikhom

[Devel] [PATCH VZ9 0/5] dm-qcow2: make backward merge asyncronous

2025-02-27 Thread Pavel Tikhomirov
That can be usefull for restarting qemu process while allowing backward merging to run asyncronously in kernel. https://virtuozzo.atlassian.net/browse/VSTOR-100466 Signed-off-by: Pavel Tikhomirov Pavel Tikhomirov (5): dm-qcow2: fix warning about wrong printk format for size_t dm-qcow2: clean

[Devel] [PATCH VZ9 4/5] dm-qcow2: add merge_backward set_eventfd command

2025-02-27 Thread Pavel Tikhomirov
This eventfd can be used to get an event when merge_backward start work have finished and is waiting for completion. Note: The eventfd can be changed even while work is running. Locking: The backward_merge.eventfd_ctx is protected from being released by tgt->ctl_mutex. https://virtuozzo.atlassi

[Devel] [PATCH VZ9 3/5] dm-qcow2: make merge_backward command asyncronous

2025-02-27 Thread Pavel Tikhomirov
This adds merge_backward "start", "complete" and "cancel" commands. By that we are able to split single merge_backward into two stages: start asyncronous merging and completion. That can be usefull for restarting qemu process while allowing backward merging to run asyncronously in kernel. The "sta

[Devel] [PATCH VZ9 5/5] dm-qcow2: add merge_backward progress command

2025-02-27 Thread Pavel Tikhomirov
This allows to see progress of backward merge. It shows the stage we are at and for iterative stages it provides progress in form of how many iteratious are done and how many iterations there are in total. https://virtuozzo.atlassian.net/browse/VSTOR-100466 Signed-off-by: Pavel Tikhomirov --- dr

[Devel] [PATCH VZ9 2/5] dm-qcow2: cleanup error handling in qcow2_merge_backward

2025-02-27 Thread Pavel Tikhomirov
The label "out" is excess, lets remove it in accordance with: "If there is no cleanup needed then just return directly." https://www.kernel.org/doc/html/v4.10/process/coding-style.html#centralized-exiting-of-functions https://virtuozzo.atlassian.net/browse/VSTOR-100466 Signed-off-by: Pavel Tikhom