Page MenuHomeFreeBSD

D44211.diff
No OneTemporary

D44211.diff

diff --git a/sys/dev/nvme/nvme_ctrlr.c b/sys/dev/nvme/nvme_ctrlr.c
--- a/sys/dev/nvme/nvme_ctrlr.c
+++ b/sys/dev/nvme/nvme_ctrlr.c
@@ -1179,10 +1179,13 @@
nvme_ctrlr_devctl_log(ctrlr, "RESET", "event=\"start\"");
status = nvme_ctrlr_hw_reset(ctrlr);
- if (status == 0)
+ if (status == 0) {
+ nvme_ctrlr_devctl_log(ctrlr, "RESET", "event=\"success\"");
nvme_ctrlr_start(ctrlr, true);
- else
+ } else {
+ nvme_ctrlr_devctl_log(ctrlr, "RESET", "event=\"timed_out\"");
nvme_ctrlr_fail(ctrlr);
+ }
atomic_cmpset_32(&ctrlr->is_resetting, 1, 0);
}

File Metadata

Mime Type
text/plain
Expires
Sat, Jan 25, 3:24 AM (20 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16121679
Default Alt Text
D44211.diff (561 B)

Event Timeline