[PATCH] nvme: make nvme_add_ns{_head}_cdev return void

Keith Busch kbusch at kernel.org
Wed Jun 10 07:33:17 PDT 2026


On Wed, Jun 10, 2026 at 11:16:08AM +0000, John Garry wrote:
> The return code from nvme_add_ns_head_cdev() and nvme_add_ns_cdev() is
> never checked, so make those functions return void.
> 
> A cdev add failure is tolerated during initialization, and flags
> NVME_NS_CDEV_LIVE and NVME_NSHEAD_CDEV_LIVE are for determining whether
> a cdev needs to be deleted during un-initialization.

Thanks, applied to nvme-7.2.



More information about the Linux-nvme mailing list