nvme: cleanup how disk->disk_name is assigned
authorChristoph Hellwig <hch@lst.de>
Tue, 15 Mar 2022 11:58:06 +0000 (12:58 +0100)
committerChristoph Hellwig <hch@lst.de>
Wed, 16 Mar 2022 08:47:01 +0000 (09:47 +0100)
commitb739e137052069c996ab8b3bc9c25be501ecc63b
treef404b3e85fb7cd43f8036f383eb74be191cdf342
parentda7837339641601f202f27515771dc0646083938
nvme: cleanup how disk->disk_name is assigned

They way how assigning the disk name and commenting on why it is done
is split over core.c and multipath.c seems to be rather confusing.

Now that ns_head->disk always exists we can do all the work in core.c
and have a single big comment explaining the issues.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
drivers/nvme/host/core.c
drivers/nvme/host/multipath.c
drivers/nvme/host/nvme.h