mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-07 09:00:28 +00:00
MFp4:
Do not search for bus when it is not needed,
This commit is contained in:
parent
41d7d5932e
commit
c0d232d988
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=198333
|
@ -4148,8 +4148,6 @@ xpt_release_simq(struct cam_sim *sim, int run_queue)
|
||||||
|
|
||||||
sendq->qfrozen_cnt--;
|
sendq->qfrozen_cnt--;
|
||||||
if (sendq->qfrozen_cnt == 0) {
|
if (sendq->qfrozen_cnt == 0) {
|
||||||
struct cam_eb *bus;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If there is a timeout scheduled to release this
|
* If there is a timeout scheduled to release this
|
||||||
* sim queue, remove it. The queue frozen count is
|
* sim queue, remove it. The queue frozen count is
|
||||||
|
@ -4159,15 +4157,17 @@ xpt_release_simq(struct cam_sim *sim, int run_queue)
|
||||||
callout_stop(&sim->callout);
|
callout_stop(&sim->callout);
|
||||||
sim->flags &= ~CAM_SIM_REL_TIMEOUT_PENDING;
|
sim->flags &= ~CAM_SIM_REL_TIMEOUT_PENDING;
|
||||||
}
|
}
|
||||||
bus = xpt_find_bus(sim->path_id);
|
|
||||||
|
|
||||||
if (run_queue) {
|
if (run_queue) {
|
||||||
|
struct cam_eb *bus;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Now that we are unfrozen run the send queue.
|
* Now that we are unfrozen run the send queue.
|
||||||
*/
|
*/
|
||||||
|
bus = xpt_find_bus(sim->path_id);
|
||||||
xpt_run_dev_sendq(bus);
|
xpt_run_dev_sendq(bus);
|
||||||
|
xpt_release_bus(bus);
|
||||||
}
|
}
|
||||||
xpt_release_bus(bus);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue