Linux-NVME Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] nvme: default to 0 poll queues
@ 2018-11-17 17:06 Jens Axboe
  2018-11-19  7:57 ` Christoph Hellwig
  0 siblings, 1 reply; 8+ messages in thread
From: Jens Axboe @ 2018-11-17 17:06 UTC (permalink / raw)


We need a better way of configuring this, and given that
polling is (still) a bit niche, let's default to using
0 poll queues. That way we'll have the same read/write/poll
behavior as 4.20, and users that want to test/use polling
are required to do manual configuration of the number of
poll queues.

Signed-off-by: Jens Axboe <axboe at kernel.dk>

diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c
index 89874e23e422..57e790391b82 100644
--- a/drivers/nvme/host/pci.c
+++ b/drivers/nvme/host/pci.c
@@ -86,7 +86,7 @@ MODULE_PARM_DESC(write_queues,
 	"Number of queues to use for writes. If not set, reads and writes "
 	"will share a queue set.");
 
-static int poll_queues = 1;
+static int poll_queues = 0;
 module_param_cb(poll_queues, &queue_count_ops, &poll_queues, 0644);
 MODULE_PARM_DESC(poll_queues, "Number of queues to use for polled IO.");
 
-- 
Jens Axboe

^ permalink raw reply related	[flat|nested] 8+ messages in thread
[parent not found: <20181209004953.GA11638@roeck-us.net>]

end of thread, other threads:[~2018-12-09 18:18 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-17 17:06 [PATCH] nvme: default to 0 poll queues Jens Axboe
2018-11-19  7:57 ` Christoph Hellwig
2018-11-19 15:18   ` Jens Axboe
     [not found] <20181209004953.GA11638@roeck-us.net>
2018-12-09  5:38 ` Jens Axboe
2018-12-09  6:22   ` Guenter Roeck
2018-12-09  6:31     ` Jens Axboe
2018-12-09  7:32       ` Guenter Roeck
2018-12-09 18:18       ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox