Page MenuHomeFreeBSD

D55518.id172701.diff
No OneTemporary

D55518.id172701.diff

diff --git a/sys/cam/nvme/nvme_xpt.c b/sys/cam/nvme/nvme_xpt.c
--- a/sys/cam/nvme/nvme_xpt.c
+++ b/sys/cam/nvme/nvme_xpt.c
@@ -114,7 +114,7 @@
};
nvme_probe_action action;
nvme_probe_flags flags;
- int restart;
+ bool restart;
struct cam_periph *periph;
} nvme_probe_softc;
@@ -267,7 +267,7 @@
lun = xpt_path_lun_id(periph->path);
if (softc->restart) {
- softc->restart = 0;
+ softc->restart = false;
NVME_PROBE_SET_ACTION(softc, NVME_PROBE_IDENTIFY_CD);
}
@@ -473,7 +473,7 @@
}
done:
if (softc->restart) {
- softc->restart = 0;
+ softc->restart = false;
xpt_release_ccb(done_ccb);
nvme_probe_schedule(periph);
goto out;
@@ -562,7 +562,7 @@
softc = (nvme_probe_softc *)old_periph->softc;
TAILQ_INSERT_TAIL(&softc->request_ccbs,
&request_ccb->ccb_h, periph_links.tqe);
- softc->restart = 1;
+ softc->restart = true;
CAM_DEBUG(path, CAM_DEBUG_TRACE,
("restarting nvme_probe device\n"));
} else {

File Metadata

Mime Type
text/plain
Expires
Mon, Apr 20, 4:35 PM (11 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29007431
Default Alt Text
D55518.id172701.diff (972 B)

Event Timeline