[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v11 07/13] block: include supported_read_flags into BDS structure
From: |
Andrey Shinkevich |
Subject: |
[PATCH v11 07/13] block: include supported_read_flags into BDS structure |
Date: |
Mon, 12 Oct 2020 20:43:19 +0300 |
Add the new member supported_read_flags to BlockDriverState structure.
It will control the BDRV_REQ_PREFETCH flag set for copy-on-read
operations.
Signed-off-by: Andrey Shinkevich <andrey.shinkevich@virtuozzo.com>
---
include/block/block_int.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/include/block/block_int.h b/include/block/block_int.h
index f782737..a142867 100644
--- a/include/block/block_int.h
+++ b/include/block/block_int.h
@@ -873,6 +873,10 @@ struct BlockDriverState {
/* I/O Limits */
BlockLimits bl;
+ /*
+ * Flags honored during pread (so far: BDRV_REQ_PREFETCH)
+ */
+ unsigned int supported_read_flags;
/* Flags honored during pwrite (so far: BDRV_REQ_FUA,
* BDRV_REQ_WRITE_UNCHANGED).
* If a driver does not support BDRV_REQ_WRITE_UNCHANGED, those
--
1.8.3.1
- Re: [PATCH v11 05/13] copy-on-read: limit COR operations to base in COR driver, (continued)
[PATCH v11 06/13] block: modify the comment for BDRV_REQ_PREFETCH flag, Andrey Shinkevich, 2020/10/12
[PATCH v11 07/13] block: include supported_read_flags into BDS structure,
Andrey Shinkevich <=
[PATCH v11 08/13] copy-on-read: add support for BDRV_REQ_PREFETCH to COR-filter, Andrey Shinkevich, 2020/10/12
[PATCH v11 09/13] copy-on-read: skip non-guest reads if no copy needed, Andrey Shinkevich, 2020/10/12
Re: [PATCH v11 09/13] copy-on-read: skip non-guest reads if no copy needed, Andrey Shinkevich, 2020/10/21