]> www.infradead.org Git - users/hch/block.git/commit
nvme: don't use nvme_update_disk_info for the multipath disk
authorChristoph Hellwig <hch@lst.de>
Mon, 26 Feb 2024 15:44:01 +0000 (10:44 -0500)
committerChristoph Hellwig <hch@lst.de>
Thu, 29 Feb 2024 15:01:34 +0000 (07:01 -0800)
commit296adba5faee51efb8983b515c6bc699920a3ef8
tree57752171d7d7aab97b855badbfcf0906814970e4
parent22952ad11e22da797ea1031016381e9b81fcc682
nvme: don't use nvme_update_disk_info for the multipath disk

Currently nvme_update_ns_info_block calls nvme_update_disk_info both for
the namespace attached disk, and the multipath one (if it exists).  This
is very different from how other stacking drivers work, and leads to
a lot of complexity.

Switch to setting the disk capacity and initializing the integrity
profile, and let blk_stack_limits which already is called just below
deal with updating the other limits.

Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/core.c