Author: mav
Date: Wed Feb  6 18:36:26 2013
New Revision: 246429
URL: http://svnweb.freebsd.org/changeset/base/246429

Log:
  MFC r242174:
  Remove several uses of numeric priorities from immediate CCB setups.

Modified:
  stable/9/sys/cam/ctl/ctl_frontend_cam_sim.c
  stable/9/sys/cam/ctl/scsi_ctl.c
  stable/9/sys/cam/scsi/scsi_da.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/cam/ctl/ctl_frontend_cam_sim.c
==============================================================================
--- stable/9/sys/cam/ctl/ctl_frontend_cam_sim.c Wed Feb  6 18:33:32 2013        
(r246428)
+++ stable/9/sys/cam/ctl/ctl_frontend_cam_sim.c Wed Feb  6 18:36:26 2013        
(r246429)
@@ -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;

Modified: stable/9/sys/cam/ctl/scsi_ctl.c
==============================================================================
--- stable/9/sys/cam/ctl/scsi_ctl.c     Wed Feb  6 18:33:32 2013        
(r246428)
+++ stable/9/sys/cam/ctl/scsi_ctl.c     Wed Feb  6 18:36:26 2013        
(r246429)
@@ -334,7 +334,7 @@ ctlfeasync(void *callback_arg, uint32_t 
                                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,
        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 *per
 
        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);
 

Modified: stable/9/sys/cam/scsi/scsi_da.c
==============================================================================
--- stable/9/sys/cam/scsi/scsi_da.c     Wed Feb  6 18:33:32 2013        
(r246428)
+++ stable/9/sys/cam/scsi/scsi_da.c     Wed Feb  6 18:36:26 2013        
(r246429)
@@ -1459,7 +1459,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);
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to