NVME io_poll with kernel 5.x

Christoph Hellwig hch at infradead.org
Fri Aug 14 04:15:50 EDT 2020


On Wed, Jul 22, 2020 at 03:05:50PM +0200, vrd at amazon.com wrote:
> Hi,
> 
> Since commit a4668d9ba ("nvme: default to 0 poll queues") [1], the nvme driver needs to be explicitly configured with poll_queues > 0 to allow enabling io_poll.
> 
> However, prior to poll queues separation in 4b04cc6a8 ("nvme: add separate poll queue map") [2], io_poll was enabled by default on nvme block devices. How does this work on older kernels, without dedicated poll queues?
> 
> The commit [1] says:
> 
> > 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.
> 
> Are there any plans / work needed for nvme to provide > 0 poll_queues by default?

Not that I know of.  If you have a good suggestion you're welcome to
propose something, though.



More information about the Linux-nvme mailing list