svn commit: r249101 - projects/camlock/sys/cam
Alexander Motin
mav at FreeBSD.org
Thu Apr 4 17:10:45 UTC 2013
Author: mav
Date: Thu Apr 4 17:10:44 2013
New Revision: 249101
URL: http://svnweb.freebsd.org/changeset/base/249101
Log:
MFC
Modified:
projects/camlock/sys/cam/cam_xpt.c
projects/camlock/sys/cam/cam_xpt_sim.h
Directory Properties:
projects/camlock/ (props changed)
projects/camlock/sys/ (props changed)
Modified: projects/camlock/sys/cam/cam_xpt.c
==============================================================================
--- projects/camlock/sys/cam/cam_xpt.c Thu Apr 4 17:10:36 2013 (r249100)
+++ projects/camlock/sys/cam/cam_xpt.c Thu Apr 4 17:10:44 2013 (r249101)
@@ -2031,39 +2031,6 @@ xptbustraverse(struct cam_eb *start_bus,
return(retval);
}
-int
-xpt_sim_opened(struct cam_sim *sim)
-{
- struct cam_eb *bus;
- struct cam_et *target;
- struct cam_ed *device;
- struct cam_periph *periph;
-
- KASSERT(sim->refcount >= 1, ("sim->refcount >= 1"));
- mtx_assert(sim->mtx, MA_OWNED);
-
- xpt_lock_buses();
- TAILQ_FOREACH(bus, &xsoftc.xpt_busses, links) {
- if (bus->sim != sim)
- continue;
-
- TAILQ_FOREACH(target, &bus->et_entries, links) {
- TAILQ_FOREACH(device, &target->ed_entries, links) {
- SLIST_FOREACH(periph, &device->periphs,
- periph_links) {
- if (periph->refcount > 0) {
- xpt_unlock_buses();
- return (1);
- }
- }
- }
- }
- }
-
- xpt_unlock_buses();
- return (0);
-}
-
static int
xpttargettraverse(struct cam_eb *bus, struct cam_et *start_target,
xpt_targetfunc_t *tr_func, void *arg)
Modified: projects/camlock/sys/cam/cam_xpt_sim.h
==============================================================================
--- projects/camlock/sys/cam/cam_xpt_sim.h Thu Apr 4 17:10:36 2013 (r249100)
+++ projects/camlock/sys/cam/cam_xpt_sim.h Thu Apr 4 17:10:44 2013 (r249101)
@@ -45,7 +45,6 @@ void xpt_release_simq(struct cam_sim *s
u_int32_t xpt_freeze_devq(struct cam_path *path, u_int count);
void xpt_release_devq(struct cam_path *path,
u_int count, int run_queue);
-int xpt_sim_opened(struct cam_sim *sim);
void xpt_done(union ccb *done_ccb);
void xpt_batch_start(struct cam_sim *sim);
void xpt_batch_done(struct cam_sim *sim);
More information about the svn-src-projects
mailing list