nvme: rename nvme_mpath_shutdown_disk to nvme_mpath_remove_disk
authorNilay Shroff <nilay@linux.ibm.com>
Wed, 14 May 2025 13:03:17 +0000 (18:33 +0530)
committerChristoph Hellwig <hch@lst.de>
Tue, 20 May 2025 03:34:52 +0000 (05:34 +0200)
commit9e221d8cf90b8599a6a3d62a1ebb712468f42a35
tree6ecff7a0a73031938fdc025efb14f133586d5d4c
parent737af5f0011a400c79c7fa7bce2f5bcb69be35d7
nvme: rename nvme_mpath_shutdown_disk to nvme_mpath_remove_disk

In the NVMe context, the term "shutdown" has a specific technical
meaning. To avoid confusion, this commit renames the nvme_mpath_
shutdown_disk function to nvme_mpath_remove_disk to better reflect
its purpose (i.e. removing the disk from the system). However,
nvme_mpath_remove_disk was already in use, and its functionality
is related to releasing or putting the head node disk. To resolve
this naming conflict and improve clarity, the existing nvme_mpath_
remove_disk function is also renamed to nvme_mpath_put_disk.

This renaming improves code readability and better aligns function
names with their actual roles.

Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Nilay Shroff <nilay@linux.ibm.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/core.c
drivers/nvme/host/multipath.c
drivers/nvme/host/nvme.h