git: 3aac51cbb99a - main - nvme: Clarify a comment

From: Warner Losh <imp_at_FreeBSD.org>
Date: Sat, 02 Nov 2024 14:16:42 UTC
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=3aac51cbb99a22723803329ce9d241f2419e1dec

commit 3aac51cbb99a22723803329ce9d241f2419e1dec
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2024-11-02 14:11:27 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2024-11-02 14:14:33 +0000

    nvme: Clarify a comment
    
    Expand the comment a little to make it clearer: Once we've restarted,
    we're out of the resetting phase in our state machine. The controller
    has actually been out of reset since we started issuing commands to it
    earlier in the resetting phase.
    
    Sponsored by:           Netflix
---
 sys/dev/nvme/nvme_ctrlr.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sys/dev/nvme/nvme_ctrlr.c b/sys/dev/nvme/nvme_ctrlr.c
index d8ad12fc9982..994994c3643f 100644
--- a/sys/dev/nvme/nvme_ctrlr.c
+++ b/sys/dev/nvme/nvme_ctrlr.c
@@ -1804,7 +1804,8 @@ nvme_ctrlr_resume(struct nvme_controller *ctrlr)
 	/*
 	 * Now that we've reset the hardware, we can restart the controller. Any
 	 * I/O that was pending is requeued. Any admin commands are aborted with
-	 * an error. Once we've restarted, take the controller out of reset.
+	 * an error. Once we've restarted, stop flagging the controller as being
+	 * in the reset phase.
 	 */
 	nvme_ctrlr_start(ctrlr, true);
 	(void)atomic_cmpset_32(&ctrlr->is_resetting, 1, 0);