[PATCH V2 2/2] nvme: All AENs of type notify generate an NVME_AEN uevent

clay.mayers at kioxia.com clay.mayers at kioxia.com
Thu Sep 29 15:39:55 PDT 2022


From: Clay Mayers <clay.mayers at kioxia.com>

This enables user mode processing of all unhandled AENs of type NOTIFY.

Signed-off-by: Clay Mayers <clay.mayers at kioxia.com>
---
 drivers/nvme/host/core.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c
index 4fcc7aec5a8c..a3d8e6476af3 100644
--- a/drivers/nvme/host/core.c
+++ b/drivers/nvme/host/core.c
@@ -4753,11 +4753,9 @@ static bool nvme_handle_aen_notice(struct nvme_ctrl *ctrl, u32 result)
 		queue_work(nvme_wq, &ctrl->ana_work);
 		break;
 #endif
-	case NVME_AER_NOTICE_DISC_CHANGED:
+	default:
 		ctrl->aen_result = result;
 		break;
-	default:
-		dev_warn(ctrl->device, "async event result %08x\n", result);
 	}
 	return requeue;
 }
-- 
2.27.0




More information about the Linux-nvme mailing list