[rh7] ploop: Actually do not split bio in kaio

Submitted by Kirill Tkhai on July 4, 2019, 9:41 a.m.

Details

Message ID 156223330192.15567.610325136523472140.stgit@localhost.localdomain
State New
Series "ploop: Actually do not split bio in kaio"
Headers show

Commit Message

Kirill Tkhai July 4, 2019, 9:41 a.m.
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@virtuozzo.com>
---
 drivers/block/ploop/io_kaio.c |    1 +
 1 file changed, 1 insertion(+)

Patch hide | download patch | download mbox

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)