[Devel] [PATCH rh7] ploop: disable WRITE SAME for io_kaio

Maxim Patlasov mpatlasov at virtuozzo.com
Wed Dec 23 16:55:41 PST 2015


kaio doesn't support WRITE SAME, so the patch disables it

https://jira.sw.ru/browse/PSBM-41965

Signed-off-by: Maxim Patlasov <mpatlasov 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 db900a3..79aa9af 100644
--- a/drivers/block/ploop/io_kaio.c
+++ b/drivers/block/ploop/io_kaio.c
@@ -946,6 +946,7 @@ static void kaio_unplug(struct ploop_io * io)
 static void kaio_queue_settings(struct ploop_io * io, struct request_queue * q)
 {
 	blk_set_stacking_limits(&q->limits);
+	blk_queue_max_write_same_sectors(q, 0);
 }
 
 static void kaio_issue_flush(struct ploop_io * io, struct ploop_request *preq)



More information about the Devel mailing list