[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v11 08/13] copy-on-read: add support for BDRV_REQ_PREFETCH to COR
From: |
Andrey Shinkevich |
Subject: |
[PATCH v11 08/13] copy-on-read: add support for BDRV_REQ_PREFETCH to COR-filter |
Date: |
Mon, 12 Oct 2020 20:43:20 +0300 |
Add support for the BDRV_REQ_PREFETCH flag to the supported_write_flags
of the COR-filter.
Signed-off-by: Andrey Shinkevich <andrey.shinkevich@virtuozzo.com>
---
block/copy-on-read.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/block/copy-on-read.c b/block/copy-on-read.c
index dfbd6ad..b136895 100644
--- a/block/copy-on-read.c
+++ b/block/copy-on-read.c
@@ -50,6 +50,7 @@ static int cor_open(BlockDriverState *bs, QDict *options, int
flags,
return -EINVAL;
}
+ bs->supported_read_flags = BDRV_REQ_PREFETCH;
bs->supported_write_flags = BDRV_REQ_WRITE_UNCHANGED |
(BDRV_REQ_FUA & bs->file->bs->supported_write_flags);
--
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, 2020/10/12
[PATCH v11 08/13] copy-on-read: add support for BDRV_REQ_PREFETCH to COR-filter,
Andrey Shinkevich <=
[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
Re: [PATCH v11 09/13] copy-on-read: skip non-guest reads if no copy needed, Andrey Shinkevich, 2020/10/22
Re: [PATCH v11 09/13] copy-on-read: skip non-guest reads if no copy needed, Vladimir Sementsov-Ogievskiy, 2020/10/22