Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F178136254
D55518.1796076035.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
972 B
Referenced Files
None
Subscribers
None
D55518.1796076035.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 30, 10:00 PM (18 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42113745
Default Alt Text
D55518.1796076035.diff (972 B)
Attached To
Mode
D55518: nvme xpt: convert restart to a bool.
Attached
Detach File
Event Timeline