git: 1d6021cd7268 - main - nvme: Supress noise messages
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 26 Sep 2023 04:24:13 UTC
The branch main has been updated by imp:
URL: https://cgit.FreeBSD.org/src/commit/?id=1d6021cd72689f54093af4ed77066a2f8abde664
commit 1d6021cd72689f54093af4ed77066a2f8abde664
Author: Warner Losh <imp@FreeBSD.org>
AuthorDate: 2023-09-26 04:08:52 +0000
Commit: Warner Losh <imp@FreeBSD.org>
CommitDate: 2023-09-26 04:21:58 +0000
nvme: Supress noise messages
When we're suspending, we get messages about waiting for the controller
to reset. These are in error: we're not waiting for it to reset. We put
the recovery state as part of suspending, so we should suppress these as
a false positive.
Also remove a stray debug that's left over from earlier versions of
the recovery code that no longer makes sense.
Sponsored by: Netflix
---
sys/dev/nvme/nvme_qpair.c | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/sys/dev/nvme/nvme_qpair.c b/sys/dev/nvme/nvme_qpair.c
index 9806096de81d..cd0057f444b8 100644
--- a/sys/dev/nvme/nvme_qpair.c
+++ b/sys/dev/nvme/nvme_qpair.c
@@ -1104,13 +1104,20 @@ nvme_qpair_timeout(void *arg)
nvme_printf(ctrlr, "Resetting controller due to a timeout%s.\n",
(csts == 0xffffffff) ? " and possible hot unplug" :
(cfs ? " and fatal error status" : ""));
- nvme_printf(ctrlr, "RECOVERY_WAITING\n");
qpair->recovery_state = RECOVERY_WAITING;
nvme_ctrlr_reset(ctrlr);
idle = false; /* We want to keep polling */
break;
case RECOVERY_WAITING:
- nvme_printf(ctrlr, "Waiting for reset to complete\n");
+ /*
+ * These messages aren't interesting while we're suspended. We
+ * put the queues into waiting state while
+ * suspending. Suspending takes a while, so we'll see these
+ * during that time and they aren't diagnostic. At other times,
+ * they indicate a problem that's worth complaining about.
+ */
+ if (!device_is_suspended(ctrlr->dev))
+ nvme_printf(ctrlr, "Waiting for reset to complete\n");
idle = false; /* We want to keep polling */
break;
case RECOVERY_FAILED: