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)
Mon, Feb 17, 12:38 PM
Unknown Object (File)
Sun, Feb 16, 3:33 PM
Unknown Object (File)
Jan 17 2025, 1:36 AM
Unknown Object (File)
Jan 11 2025, 9:01 AM
Unknown Object (File)
Jan 4 2025, 7:38 AM
Unknown Object (File)
Nov 25 2024, 3:04 PM
Unknown Object (File)
Nov 15 2024, 2:59 AM
Unknown Object (File)
Nov 15 2024, 12:33 AM
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