Re: [Devel] [PATCH VZ9 3/3] drivers/md/ploop: decrease inflight number after pio endio

2025-07-16 Thread Andrey Zhadchenko
On 7/16/25 04:51, Pavel Tikhomirov wrote: On 7/15/25 22:20, Andrey Zhadchenko wrote: We do not increase inflight number when we chain pios, so we should decrease inflight only after all chained pios are also completed, e.g. pio->remaining is zero, and file is flushed if needed I see that p

Re: [Devel] [PATCH VZ9 v2 0/3] improve pio submission suspension

2025-07-16 Thread Pavel Tikhomirov
Reviewed-by: Pavel Tikhomirov On 7/16/25 17:37, Andrey Zhadchenko wrote: Recently we encountered EBUSY errors while trying to resize ploop devices under load. This mostly happens because we are not waiting in-progess IO correctly: - initial pio is removed from inflight even if its split pios

[Devel] [PATCH VZ9 v2 2/3] drivers/md/ploop: add inflight metadata writeback counter

2025-07-16 Thread Andrey Zhadchenko
and use it during ploop_suspend_submitting_pios() to wait for all writeback to flush https://virtuozzo.atlassian.net/browse/VSTOR-108540 Signed-off-by: Andrey Zhadchenko --- v2: - removed excessive ploop_inflight_bios_ref_switch() drivers/md/dm-ploop-cmd.c| 6 ++ drivers/md/dm-ploop-ma

[Devel] [PATCH VZ9 v2 3/3] drivers/md/ploop: decrease inflight number after pio endio

2025-07-16 Thread Andrey Zhadchenko
We do not increase inflight number when we chain pios, so we should decrease inflight only after all chained pios are also completed, e.g. pio->remaining is zero, and file is flushed if needed https://virtuozzo.atlassian.net/browse/VSTOR-108540 Signed-off-by: Andrey Zhadchenko --- drivers/md/dm-

[Devel] [PATCH VZ9 v2 0/3] improve pio submission suspension

2025-07-16 Thread Andrey Zhadchenko
Recently we encountered EBUSY errors while trying to resize ploop devices under load. This mostly happens because we are not waiting in-progess IO correctly: - initial pio is removed from inflight even if its split pios are still running - there are no wait for metadata writeback This patchset f

[Devel] [PATCH VZ9 v2 1/3] drivers/md/ploop: drop excessive wb delay disable during resize

2025-07-16 Thread Andrey Zhadchenko
as ploop_suspend_submitting_pios() already contains ploop_disable_writeback_delay() and is called before ploop_process_resize_cmd() https://virtuozzo.atlassian.net/browse/VSTOR-108540 Signed-off-by: Andrey Zhadchenko --- drivers/md/dm-ploop-cmd.c | 3 --- 1 file changed, 3 deletions(-) diff --g

Re: [Devel] [PATCH VZ9 2/3] drivers/md/ploop: add inflight metadata writeback counter

2025-07-16 Thread Andrey Zhadchenko
On 7/16/25 04:36, Pavel Tikhomirov wrote: On 7/15/25 22:20, Andrey Zhadchenko wrote: and use it during ploop_suspend_submitting_pios() to wait for all writeback to flush https://virtuozzo.atlassian.net/browse/VSTOR-108540 Signed-off-by: Andrey Zhadchenko ---   drivers/md/dm-ploop-cmd.c   

[Devel] [PATCH RHEL9 COMMIT] dm-ploop: decrease inflight number after pio endio

2025-07-16 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.0-427.55.1.vz9.82.x-ovz" and will appear at g...@bitbucket.org:openvz/vzkernel.git after rh9-5.14.0-427.55.1.vz9.82.8 --> commit 3f9825c0e19b04584cbd9b0f6fa31d82e30ddefc Author: Andrey Zhadchenko Date: Wed Jul 16 12:37:53 2025 +0300 dm-ploop: de

[Devel] [PATCH RHEL9 COMMIT] dm-ploop: add inflight metadata writeback counter

2025-07-16 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.0-427.55.1.vz9.82.x-ovz" and will appear at g...@bitbucket.org:openvz/vzkernel.git after rh9-5.14.0-427.55.1.vz9.82.8 --> commit 2ca8fae2ae23d814b347eef8b43630e4e4e11aa3 Author: Andrey Zhadchenko Date: Wed Jul 16 12:37:52 2025 +0300 dm-ploop: ad

[Devel] [PATCH RHEL9 COMMIT] dm-ploop: drop excessive wb delay disable during resize

2025-07-16 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.0-427.55.1.vz9.82.x-ovz" and will appear at g...@bitbucket.org:openvz/vzkernel.git after rh9-5.14.0-427.55.1.vz9.82.8 --> commit 89f505f973a37e34cbb4f1f4884559adbb4657e5 Author: Andrey Zhadchenko Date: Wed Jul 16 12:37:51 2025 +0300 dm-ploop: dr