[PATCH] nvme-core: decode the error on add disk()

Christoph Hellwig hch at lst.de
Fri Jan 17 00:31:46 PST 2025


On Thu, Jan 16, 2025 at 12:15:27PM -0800, Chaitanya Kulkarni wrote:
> While debugging the problem, it is important to know that what exact
> error returned by device_add_disk() along side the disk name. Print
> the error along with disk name when device_add_disk() fails when
> allocating the namespace.

Sounds like this would be better places in device_add_disk and not
in the drivers.




More information about the Linux-nvme mailing list