nvme-multipath: set nr_zones for zoned namespaces
authorKeith Busch <kbusch@kernel.org>
Fri, 5 Feb 2021 19:50:02 +0000 (11:50 -0800)
committerChristoph Hellwig <hch@lst.de>
Wed, 10 Feb 2021 15:38:04 +0000 (16:38 +0100)
commit73a1a2298f3e9df24cea7a9aab412ba9470f6159
tree73a7bed0aed29a7b1196bf562425195e9a05d0c9
parent0fbcfb089a3f2f2a731d01f0aec8f7697a849c28
nvme-multipath: set nr_zones for zoned namespaces

The bio based drivers only require the request_queue's nr_zones is set,
so set this field in the head if the namespace path is zoned.

Fixes: 240e6ee272c07 ("nvme: support for zoned namespaces")
Reported-by: Minwoo Im <minwoo.im.dev@gmail.com>
Cc: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/multipath.c