[Devel] [PATCH rh9 v2 4/4] dm-ploop: use helper to initialize kiocb

2022-10-12 Thread Konstantin Khorenko
From: Alexander Atanasov Initialize kiocb with init_sync_kiocb(...) which handles file flags, write hints and ioprio. Bios can get merged wrong if ioprio is not set early - 20578bdfd041 ("block: Initialize BIO I/O priority early") for details. https://jira.sw.ru/browse/PSBM-142045 Signed-off-by

[Devel] [PATCH rh9 v2 1/4] dm-qcow2: check if files are opened with O_DIRECT

2022-10-12 Thread Konstantin Khorenko
From: Alexander Atanasov Check that passed file descriptors are using O_DIRECT. Required to avoid data integrity problems caused by the page cache. + add error messages https://jira.sw.ru/browse/PSBM-142050 Signed-off-by: Alexander Atanasov --- drivers/md/dm-qcow2-target.c | 21 ++

[Devel] [PATCH rh9 v2 3/4] dm-ploop: validate file descriptors more strictly

2022-10-12 Thread Konstantin Khorenko
From: Alexander Atanasov * Check if file is opened with O_DIRECT. * Check if the file is a regular file. * If missing read permission return EACCES instead of EBADF. * Add error messages. https://jira.sw.ru/browse/PSBM-142046 Signed-off-by: Alexander Atanasov --- drivers/md/dm-ploop-target

[Devel] [PATCH rh9 v2 2/4] dm-qcow2: use helper to initialize kiocb

2022-10-12 Thread Konstantin Khorenko
From: Alexander Atanasov Initialize kiocb with init_sync_kiocb(...) which handles file flags, write hints and ioprio. Bios can get merged wrong if ioprio is not set early - 20578bdfd041 ("block: Initialize BIO I/O priority early") for details https://jira.sw.ru/browse/PSBM-142050 Signed-off-by:

[Devel] Fwd: [PATCH RH9] dm-ploop: port the standby mode feature.

2022-10-12 Thread Konstantin Khorenko
Sashas, can you please review the patch from Liu? And i wonder if we need similar patch for dm-qcow driver. Thank you! -- Konstantin Forwarded Message Subject: [Devel] [PATCH RH9] dm-ploop: port the standby mode feature. Date: Mon, 3 Oct 2022 15:42:32 +0800 From: Liu Kui To

Re: [Devel] Fwd: [PATCH RH9] dm-ploop: port the standby mode feature.

2022-10-12 Thread Alexander Atanasov
Hello, On 12.10.22 21:08, Konstantin Khorenko wrote: Sashas, can you please review the patch from Liu? And i wonder if we need similar patch for dm-qcow driver. comments bellow. Forwarded Message Subject: [Devel] [PATCH RH9] dm-ploop: port the standby mode feature. Date: