PERFORCE change 169418 for review
Alexander Motin
mav at FreeBSD.org
Mon Oct 12 09:16:42 UTC 2009
http://perforce.freebsd.org/chv.cgi?CH=169418
Change 169418 by mav at mav_mavtest on 2009/10/12 09:16:05
Look for bus only when it is needed.
Affected files ...
.. //depot/projects/scottl-camlock/src/sys/cam/cam_xpt.c#105 edit
Differences ...
==== //depot/projects/scottl-camlock/src/sys/cam/cam_xpt.c#105 (text+ko) ====
@@ -4156,8 +4156,6 @@
sendq->qfrozen_cnt--;
if (sendq->qfrozen_cnt == 0) {
- struct cam_eb *bus;
-
/*
* If there is a timeout scheduled to release this
* sim queue, remove it. The queue frozen count is
@@ -4167,15 +4165,17 @@
callout_stop(&sim->callout);
sim->flags &= ~CAM_SIM_REL_TIMEOUT_PENDING;
}
- bus = xpt_find_bus(sim->path_id);
if (run_queue) {
+ struct cam_eb *bus;
+
/*
* Now that we are unfrozen run the send queue.
*/
+ bus = xpt_find_bus(sim->path_id);
xpt_run_dev_sendq(bus);
+ xpt_release_bus(bus);
}
- xpt_release_bus(bus);
}
}
}
More information about the p4-projects
mailing list