diff mbox series

null_blk: enable discard support by default

Message ID 20190107192352.3129-1-jpittman@redhat.com (mailing list archive)
State New, archived
Headers show
Series null_blk: enable discard support by default | expand

Commit Message

John Pittman Jan. 7, 2019, 7:23 p.m. UTC
Support for discard was added to the null_blk driver in 'commit
306eb6b4ad4f ("nullb: support discard")'.  For ease of use in
benchmarking and target testing, enable this support by default.

Signed-off-by: John Pittman <jpittman@redhat.com>
---
 drivers/block/null_blk_main.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/drivers/block/null_blk_main.c b/drivers/block/null_blk_main.c
index 62c9654b9ce8..c4a1db0fb336 100644
--- a/drivers/block/null_blk_main.c
+++ b/drivers/block/null_blk_main.c
@@ -527,6 +527,7 @@  static struct nullb_device *null_alloc_dev(void)
 	dev->zoned = g_zoned;
 	dev->zone_size = g_zone_size;
 	dev->zone_nr_conv = g_zone_nr_conv;
+	dev->discard = true;
 	return dev;
 }