summaryrefslogtreecommitdiffstats
path: root/sys/cam
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2012-10-27 09:40:29 +0000
committermav <mav@FreeBSD.org>2012-10-27 09:40:29 +0000
commit1cb4a9777f389b1260f867fc5fcd261506ab8cec (patch)
tree23709da9a552c9b927f397ab287afd19e9ff4faf /sys/cam
parent0d3ac10d4d76dd7c7e2e6a4fb79a4db0973052bd (diff)
downloadFreeBSD-src-1cb4a9777f389b1260f867fc5fcd261506ab8cec.zip
FreeBSD-src-1cb4a9777f389b1260f867fc5fcd261506ab8cec.tar.gz
Remove several uses of numeric priorities from immediate CCB setups.
Diffstat (limited to 'sys/cam')
-rw-r--r--sys/cam/ctl/ctl_frontend_cam_sim.c2
-rw-r--r--sys/cam/ctl/scsi_ctl.c8
-rw-r--r--sys/cam/scsi/scsi_da.c2
3 files changed, 6 insertions, 6 deletions
diff --git a/sys/cam/ctl/ctl_frontend_cam_sim.c b/sys/cam/ctl/ctl_frontend_cam_sim.c
index d7b20dd..fa72059 100644
--- a/sys/cam/ctl/ctl_frontend_cam_sim.c
+++ b/sys/cam/ctl/ctl_frontend_cam_sim.c
@@ -240,7 +240,7 @@ cfcs_init(void)
goto bailout;
}
- xpt_setup_ccb(&csa.ccb_h, softc->path, /*priority*/ 5);
+ xpt_setup_ccb(&csa.ccb_h, softc->path, CAM_PRIORITY_NONE);
csa.ccb_h.func_code = XPT_SASYNC_CB;
csa.event_enable = AC_LOST_DEVICE;
csa.callback = cfcs_async;
diff --git a/sys/cam/ctl/scsi_ctl.c b/sys/cam/ctl/scsi_ctl.c
index 8d6f7e3..c5809fc 100644
--- a/sys/cam/ctl/scsi_ctl.c
+++ b/sys/cam/ctl/scsi_ctl.c
@@ -334,7 +334,7 @@ ctlfeasync(void *callback_arg, uint32_t code, struct cam_path *path, void *arg)
return;
}
xpt_setup_ccb(&ccb->ccb_h, cpi->ccb_h.path,
- /*priority*/ 1);
+ CAM_PRIORITY_NONE);
sim = xpt_path_sim(cpi->ccb_h.path);
@@ -571,7 +571,7 @@ ctlferegister(struct cam_periph *periph, void *arg)
callout_init_mtx(&softc->dma_callout, sim->mtx, /*flags*/ 0);
periph->softc = softc;
- xpt_setup_ccb(&en_lun_ccb.ccb_h, periph->path, /*priority*/ 1);
+ xpt_setup_ccb(&en_lun_ccb.ccb_h, periph->path, CAM_PRIORITY_NONE);
en_lun_ccb.ccb_h.func_code = XPT_EN_LUN;
en_lun_ccb.cel.grp6_len = 0;
en_lun_ccb.cel.grp7_len = 0;
@@ -668,7 +668,7 @@ ctlfeoninvalidate(struct cam_periph *periph)
softc = (struct ctlfe_lun_softc *)periph->softc;
- xpt_setup_ccb(&en_lun_ccb.ccb_h, periph->path, /*priority*/ 1);
+ xpt_setup_ccb(&en_lun_ccb.ccb_h, periph->path, CAM_PRIORITY_NONE);
en_lun_ccb.ccb_h.func_code = XPT_EN_LUN;
en_lun_ccb.cel.grp6_len = 0;
en_lun_ccb.cel.grp7_len = 0;
@@ -1694,7 +1694,7 @@ ctlfe_onoffline(void *arg, int online)
return;
}
ccb = (union ccb *)malloc(sizeof(*ccb), M_TEMP, M_WAITOK | M_ZERO);
- xpt_setup_ccb(&ccb->ccb_h, path, /*priority*/ 1);
+ xpt_setup_ccb(&ccb->ccb_h, path, CAM_PRIORITY_NONE);
sim = xpt_path_sim(path);
diff --git a/sys/cam/scsi/scsi_da.c b/sys/cam/scsi/scsi_da.c
index 4f5d876..315df58 100644
--- a/sys/cam/scsi/scsi_da.c
+++ b/sys/cam/scsi/scsi_da.c
@@ -1510,7 +1510,7 @@ dasysctlinit(void *context, int pending)
* Add some addressing info.
*/
memset(&cts, 0, sizeof (cts));
- xpt_setup_ccb(&cts.ccb_h, periph->path, /*priority*/1);
+ xpt_setup_ccb(&cts.ccb_h, periph->path, CAM_PRIORITY_NONE);
cts.ccb_h.func_code = XPT_GET_TRAN_SETTINGS;
cts.type = CTS_TYPE_CURRENT_SETTINGS;
cam_periph_lock(periph);
OpenPOWER on IntegriCloud