Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F171429514
D55518.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
972 B
Referenced Files
None
Subscribers
None
D55518.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
Sat, Sep 12, 2:30 AM (7 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38690223
Default Alt Text
D55518.diff (972 B)
Attached To
Mode
D55518: nvme xpt: convert restart to a bool.
Attached
Detach File
Event Timeline
Log In to Comment