Page MenuHomeFreeBSD

Run callouts during infinite waiting inside cv_wait
ClosedPublic

Authored by wma_semihalf.com on Nov 13 2015, 12:36 PM.
Tags
None
Referenced Files
F111894243: D4144.id10287.diff
Sun, Mar 9, 10:28 PM
F111872884: D4144.diff
Sun, Mar 9, 3:31 PM
Unknown Object (File)
Feb 7 2025, 7:28 PM
Unknown Object (File)
Feb 5 2025, 1:42 AM
Unknown Object (File)
Jan 28 2025, 4:14 AM
Unknown Object (File)
Jan 28 2025, 4:03 AM
Unknown Object (File)
Jan 28 2025, 3:50 AM
Unknown Object (File)
Jan 27 2025, 9:35 AM
Subscribers
None

Details

Summary
During cv_wait we may be waiting for an event triggered by callout.
Run callbacks here to avoid code blocking.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

wma_semihalf.com retitled this revision from to Run callouts during infinite waiting inside cv_wait.
wma_semihalf.com updated this object.
wma_semihalf.com edited the test plan for this revision. (Show Details)
wma_semihalf.com added reviewers: hselasky, zbb.
sys/boot/kshim/bsd_kernel.c
153 ↗(On Diff #10153)

Not sure how that got here, will be removed.

sys/boot/kshim/bsd_kernel.c
158 ↗(On Diff #10261)

This lock should be moved after the delay(1000);

This revision is now accepted and ready to land.Nov 18 2015, 8:59 AM
sys/boot/kshim/bsd_kernel.c
158 ↗(On Diff #10287)

Hi,
I think the long delay might affect the performance of some existing boot code. Could you reduce the delay to 1us and increase the check (++time >= (1000000 / hz)) ?

--HPS

This revision was automatically updated to reflect the committed changes.