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
Unknown Object (File)
Feb 23 2024, 1:52 PM
Unknown Object (File)
Feb 17 2024, 8:06 AM
Unknown Object (File)
Jan 18 2024, 5:13 AM
Unknown Object (File)
Jan 2 2024, 4:29 PM
Unknown Object (File)
Dec 22 2023, 11:02 PM
Unknown Object (File)
Dec 9 2023, 11:30 AM
Unknown Object (File)
Dec 9 2023, 3:33 AM
Unknown Object (File)
Nov 23 2023, 2:44 PM
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.