]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "nvme-pci: don't create a read hctx mapping without read queues"
authoryangerkun <yangerkun@huawei.com>
Tue, 23 Jul 2019 03:23:13 +0000 (11:23 +0800)
committerChristoph Hellwig <hch@lst.de>
Tue, 23 Jul 2019 15:47:02 +0000 (17:47 +0200)
commita8c9abb8fff593b0797478d02803c72de2bd0d51
tree6d40e7bbb4398d875eace9f04234caa9a03da35c
parent3368c0d7d6d9bba59222dd2cd241ded0f3184de8
Revert "nvme-pci: don't create a read hctx mapping without read queues"

This reverts commit 945636e41f6ff5202a4c996b8008491b8689e515.

With this patch, set 'poll_queues > hard queues' will lead to 'nr_read_queues = 0'
in nvme_calc_irq_sets. Then poll_queues setting can fail since dev->tagset.nr_maps
equals to 2 and nvme_pci_map_queues will not do map for poll queues.

Signed-off-by: yangerkun <yangerkun@huawei.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/pci.c