Page MenuHomeFreeBSD

Fix an msleep() that can use different mutexes to avoid assert panic
ClosedPublic

Authored by rmacklem on Oct 13 2022, 3:02 AM.
Tags
None
Referenced Files
F150249895: D36977.id111749.diff
Mon, Mar 30, 3:18 PM
Unknown Object (File)
Sun, Mar 29, 6:00 PM
Unknown Object (File)
Thu, Mar 12, 1:15 PM
Unknown Object (File)
Feb 10 2026, 1:59 AM
Unknown Object (File)
Feb 8 2026, 5:30 PM
Unknown Object (File)
Jan 4 2026, 4:04 PM
Unknown Object (File)
Dec 14 2025, 10:06 AM
Unknown Object (File)
Dec 12 2025, 6:03 PM
Subscribers

Details

Summary

During recent testing as part of an IETF NFSv4 testing event,
I got an assert panic in sleepq_add(), due to a call with a
different mutex for the same wchan.

This turned out to be harmless, since the msleep() is on
a fake wchan that never gets a wakeup() and is simply a
time delay sleep.

To avoid the assert panic, this patch replaces the msleep()
with a tsleep().

Test Plan

With this patch, the test runs no longer assert panic'd.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable