Page MenuHomeFreeBSD

callout: fix using shared rmlocks
ClosedPublic

Authored by kp on Apr 19 2022, 4:20 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Sep 12, 3:52 AM
Unknown Object (File)
Fri, Sep 11, 8:17 PM
Unknown Object (File)
Fri, Sep 11, 6:14 PM
Unknown Object (File)
Aug 14 2026, 11:14 AM
Unknown Object (File)
Aug 12 2026, 6:42 PM
Unknown Object (File)
Aug 12 2026, 6:41 PM
Unknown Object (File)
Aug 12 2026, 6:41 PM
Unknown Object (File)
Aug 11 2026, 4:55 PM
Subscribers

Details

Summary

15b1eb142c changed the callout code to store the CALLOUT_SHAREDLOCK flag
in c_iflags (where it used to be c_flags), but failed to update the
check in softclock_call_cc(). This resulted in the callout code always
taking the write lock, even if a read lock had been requested (with
the CALLOUT_SHAREDLOCK flag in callout_init_rm()).

MFC after: 1 week
Sponsored by: Rubicon Communications, LLC ("Netgate")

Diff Detail

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