Ignore:
Timestamp:
Dec 17, 2014, 2:11:00 PM (5 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
8ce00eaf
Parents:
481054e0
git-author:
Sebastian Huber <sebastian.huber@…> (12/17/14 14:11:00)
git-committer:
Sebastian Huber <sebastian.huber@…> (12/18/14 07:33:29)
Message:

smp: Fix timeout for MrsP semaphores

The previous timeout handling was flawed. In case a waiting thread
helped out the owner could use the scheduler node indefinitely long.
Update the resource tree in _MRSP_Timeout() to avoid this issue.

Bug reported by Luca Bonato.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/smptests/smpmrsp01/smpmrsp01.scn

    r481054e0 r864d3475  
    4646[1] MAIN -> HELP (prio   2, node HELP)
    4747test MrsP obtain and release
     48[1] IDLE -> WORK (prio   4, node WORK)
     49[1] WORK -> MAIN (prio   3, node WORK)
     50[0] MAIN -> HIG0 (prio   1, node HIG0)
     51[1] MAIN -> WORK (prio   4, node WORK)
     52[0] HIG0 -> MAIN (prio   2, node MAIN)
    4853test MrsP load
    4954worker[0]
Note: See TracChangeset for help on using the changeset viewer.