]> www.infradead.org Git - users/hch/block.git/commit
nvme-multipath: pass queue_limits to blk_alloc_disk
authorChristoph Hellwig <hch@lst.de>
Mon, 26 Feb 2024 17:34:40 +0000 (12:34 -0500)
committerChristoph Hellwig <hch@lst.de>
Fri, 1 Mar 2024 12:59:34 +0000 (05:59 -0700)
commit665084d09260cc5c9bab6c8d771397be8ec8a988
treed9bdd37efe5533cd55d52d273c6ac4e56018fef1
parent185acd2d1d2992088b2927296b684e22958eaa43
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>
drivers/nvme/host/multipath.c