diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2001-02-04 13:13:25 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2001-02-04 13:13:25 +0000 |
| commit | fc2ffbe6040d6630a06229c5c9be77601fb635eb (patch) | |
| tree | 328f91e23b34b382d998fba4c7e55796b240b62b /sys/cam/cam_periph.c | |
| parent | ef9e85abba5ce45c8b3fc840db320edb1abe0160 (diff) | |
Notes
Diffstat (limited to 'sys/cam/cam_periph.c')
| -rw-r--r-- | sys/cam/cam_periph.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/cam/cam_periph.c b/sys/cam/cam_periph.c index a7370eb96bd8..b7920b9f9174 100644 --- a/sys/cam/cam_periph.c +++ b/sys/cam/cam_periph.c @@ -696,17 +696,17 @@ cam_periph_getccb(struct cam_periph *periph, u_int32_t priority) s = splsoftcam(); - while (periph->ccb_list.slh_first == NULL) { + while (SLIST_FIRST(&periph->ccb_list) == NULL) { if (periph->immediate_priority > priority) periph->immediate_priority = priority; xpt_schedule(periph, priority); - if ((periph->ccb_list.slh_first != NULL) - && (periph->ccb_list.slh_first->pinfo.priority == priority)) + if ((SLIST_FIRST(&periph->ccb_list) != NULL) + && (SLIST_FIRST(&periph->ccb_list)->pinfo.priority == priority)) break; tsleep(&periph->ccb_list, PRIBIO, "cgticb", 0); } - ccb_h = periph->ccb_list.slh_first; + ccb_h = SLIST_FIRST(&periph->ccb_list); SLIST_REMOVE_HEAD(&periph->ccb_list, periph_links.sle); splx(s); return ((union ccb *)ccb_h); |
