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
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 ++
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
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:
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
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: