nvme-multipath: pass queue_limits to blk_alloc_disk
authorChristoph Hellwig <hch@lst.de>
Mon, 4 Mar 2024 14:04:59 +0000 (07:04 -0700)
committerKeith Busch <kbusch@kernel.org>
Mon, 4 Mar 2024 16:24:56 +0000 (08:24 -0800)
commitc5be5df7217fec219e1be063859e5d099b6a9227
treeffde8317969870ca051da25b7cc70fbd399922d4
parente6c9b130d68144381c097c90c517cc25e8f8924e
nvme-multipath: pass queue_limits to blk_alloc_disk

The multipath disk starts out with the stacking default limits.
The one interesting part here is that blk_set_stacking_limits
sets the max_zone_append_sectorts to UINT_MAX, which fails the
validation for non-zoned devices.  With the old one call per
limit scheme this was fine because no one verified this weird
mismatch and it was fixed by blk_stack_limits a little later
before I/O could be issued.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/multipath.c