PERFORCE change 170130 for review
Alexander Motin
mav at FreeBSD.org
Tue Nov 3 20:58:48 UTC 2009
http://p4web.freebsd.org/chv.cgi?CH=170130
Change 170130 by mav at mav_mavtest on 2009/11/03 20:57:51
Remove check unused for at least five years. If we will ever have
non-BIO devices in CAM, this check is smallest of what we will need.
Affected files ...
.. //depot/projects/scottl-camlock/src/sys/cam/cam_xpt.c#119 edit
Differences ...
==== //depot/projects/scottl-camlock/src/sys/cam/cam_xpt.c#119 (text+ko) ====
@@ -4246,23 +4246,15 @@
* any of the "non-immediate" type of ccbs.
*/
sim = done_ccb->ccb_h.path->bus->sim;
- switch (done_ccb->ccb_h.path->periph->type) {
- case CAM_PERIPH_BIO:
- TAILQ_INSERT_TAIL(&sim->sim_doneq, &done_ccb->ccb_h,
- sim_links.tqe);
- done_ccb->ccb_h.pinfo.index = CAM_DONEQ_INDEX;
- if ((sim->flags & CAM_SIM_ON_DONEQ) == 0) {
- mtx_lock(&cam_simq_lock);
- TAILQ_INSERT_TAIL(&cam_simq, sim,
- links);
- mtx_unlock(&cam_simq_lock);
- sim->flags |= CAM_SIM_ON_DONEQ;
- swi_sched(cambio_ih, 0);
- }
- break;
- default:
- panic("unknown periph type %d",
- done_ccb->ccb_h.path->periph->type);
+ TAILQ_INSERT_TAIL(&sim->sim_doneq, &done_ccb->ccb_h,
+ sim_links.tqe);
+ done_ccb->ccb_h.pinfo.index = CAM_DONEQ_INDEX;
+ if ((sim->flags & CAM_SIM_ON_DONEQ) == 0) {
+ mtx_lock(&cam_simq_lock);
+ TAILQ_INSERT_TAIL(&cam_simq, sim, links);
+ mtx_unlock(&cam_simq_lock);
+ sim->flags |= CAM_SIM_ON_DONEQ;
+ swi_sched(cambio_ih, 0);
}
}
}
More information about the p4-projects
mailing list