Page MenuHomeFreeBSD

Fix the !SMP case in sched_add().
ClosedPublic

Authored by markj on Feb 3 2020, 8:33 PM.
Tags
None
Referenced Files
F103564674: D23492.diff
Tue, Nov 26, 2:10 PM
Unknown Object (File)
Oct 18 2024, 11:37 AM
Unknown Object (File)
Oct 14 2024, 2:49 PM
Unknown Object (File)
Oct 4 2024, 6:00 PM
Unknown Object (File)
Oct 3 2024, 11:49 PM
Unknown Object (File)
Oct 2 2024, 3:03 PM
Unknown Object (File)
Sep 30 2024, 11:57 PM
Unknown Object (File)
Sep 8 2024, 8:28 AM
Subscribers

Details

Summary

If the thread's lock is already that of the runqueue, don't recurse on
the queue lock.

Test Plan

Fixes a panic on boot that I hit while trying to reproduce an unrelated problem.

Diff Detail

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

Event Timeline

markj added reviewers: jeff, kib.
This revision is now accepted and ready to land.Feb 3 2020, 8:43 PM

I thought I tested !SMP but maybe I just built it. This LGTM.

Looking at this I should really just add srqflags to thread_lock_set and possibly something similar to thread_lock_block().

This revision was automatically updated to reflect the committed changes.