]> www.infradead.org Git - nvme.git/commitdiff
nvme: use better description for async reset reason
authorKeith Busch <kbusch@kernel.org>
Thu, 22 Aug 2024 15:18:08 +0000 (08:18 -0700)
committerKeith Busch <kbusch@kernel.org>
Fri, 23 Aug 2024 16:52:04 +0000 (09:52 -0700)
The NVMe AER notification of a persistent internal error triggers a
reset. The existing warning message just says "due to AER", which can be
confused with the unrelated PCIe AER condition. Just say what the event
was instead of the generic overloaded acronym.

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

index 0dc8bcc664f2237c71f1c51ee4f1c1de12c063c9..983909a600adb8b5e57fd9803bd344217875cc08 100644 (file)
@@ -4437,7 +4437,8 @@ static bool nvme_handle_aen_notice(struct nvme_ctrl *ctrl, u32 result)
 
 static void nvme_handle_aer_persistent_error(struct nvme_ctrl *ctrl)
 {
-       dev_warn(ctrl->device, "resetting controller due to AER\n");
+       dev_warn(ctrl->device,
+               "resetting controller due to persistent internal error\n");
        nvme_reset_ctrl(ctrl);
 }