• Ingo Molnar's avatar
    [PATCH] thread-flock-2.5.38-A3 · a16435af
    Ingo Molnar authored
    Ulrich found another small detail wrt. POSIX requirements for threads -
    this time it's the recursion features (read-held lock being write-locked
    means an upgrade if the same 'process' is the owner, means a deadlock if a
    different 'process').
    
    this requirement even makes some sense - the group of threads who own a
    lock really own all rights to the lock as well.
    
    These changes fix this, all testcases pass now.  (inter-process
    testcases as well, which are not affected by this patch.)
    
    (SIGURG and SIGIO semantics should also continue to work - there's some
    more stuff we can optimize with the new pidhash in this area, but that's
    for later.)
    a16435af
locks.c 47.8 KB