[Midnightbsd-cvs] src [8747] trunk/sys/cam: Remove several uses of numeric priorities from immediate CCB setups.
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sun Sep 25 22:28:47 EDT 2016
Revision: 8747
http://svnweb.midnightbsd.org/src/?rev=8747
Author: laffer1
Date: 2016-09-25 22:28:47 -0400 (Sun, 25 Sep 2016)
Log Message:
-----------
Remove several uses of numeric priorities from immediate CCB setups.
Modified Paths:
--------------
trunk/sys/cam/ctl/ctl_frontend_cam_sim.c
trunk/sys/cam/ctl/scsi_ctl.c
trunk/sys/cam/scsi/scsi_da.c
Modified: trunk/sys/cam/ctl/ctl_frontend_cam_sim.c
===================================================================
--- trunk/sys/cam/ctl/ctl_frontend_cam_sim.c 2016-09-26 02:28:06 UTC (rev 8746)
+++ trunk/sys/cam/ctl/ctl_frontend_cam_sim.c 2016-09-26 02:28:47 UTC (rev 8747)
@@ -240,7 +240,7 @@
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;
Modified: trunk/sys/cam/ctl/scsi_ctl.c
===================================================================
--- trunk/sys/cam/ctl/scsi_ctl.c 2016-09-26 02:28:06 UTC (rev 8746)
+++ trunk/sys/cam/ctl/scsi_ctl.c 2016-09-26 02:28:47 UTC (rev 8747)
@@ -334,7 +334,7 @@
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 @@
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 @@
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 @@
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);
Modified: trunk/sys/cam/scsi/scsi_da.c
===================================================================
--- trunk/sys/cam/scsi/scsi_da.c 2016-09-26 02:28:06 UTC (rev 8746)
+++ trunk/sys/cam/scsi/scsi_da.c 2016-09-26 02:28:47 UTC (rev 8747)
@@ -1459,7 +1459,7 @@
* 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);
More information about the Midnightbsd-cvs
mailing list