Menu

#1301 Fix priority inheritance through prioritized message queues

21.11.5
open
None
RT
Low
21.11.4
True
2026-03-18
2026-03-18
No

When CH_CFG_USE_MESSAGES_PRIORITY is enabled, the PI walk in chMtxLockS() boosts the priority of a thread blocked in CH_STATE_SNDMSGQ but does not re-enqueue it in the receiver's msgqueue, preserving the priority inversion.

Root cause: u.sentmsg and u.wtobjp alias in the u union, so there is nowhere to store the back-pointer to the receiver's queue while the sender is waiting.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB