[Devel] [PATCH rh7] ploop: Actually do not split bio in kaio
Kirill Tkhai
ktkhai at virtuozzo.com
Thu Jul 4 12:41:47 MSK 2019
max_discard_sectors = 0 disables discard at all.
True value we had in maintaince mode is INT_MAX >> 9.
https://jira.sw.ru/browse/PSBM-95948
Fixes: 44b4e9571214 "ploop: Do not split discard bio in kaio"
Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
---
drivers/block/ploop/io_kaio.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/block/ploop/io_kaio.c b/drivers/block/ploop/io_kaio.c
index 1e68727a3f87..3632f8376fbe 100644
--- a/drivers/block/ploop/io_kaio.c
+++ b/drivers/block/ploop/io_kaio.c
@@ -1078,6 +1078,7 @@ static void kaio_queue_settings(struct ploop_io * io, struct request_queue * q)
* https://jira.sw.ru/browse/PSBM-95772
*/
//ploop_set_discard_limits(io->plo);
+ q->limits.max_discard_sectors = UINT_MAX >> 9;
}
static void kaio_issue_flush(struct ploop_io * io, struct ploop_request *preq)
More information about the Devel
mailing list