• Matthew Wilcox's avatar
    [PATCH] fs/locks.c: Only yield once for flocks · 7962ad19
    Matthew Wilcox authored
    This patch removes the annoying and confusing `wait' argument from
    many places.  The only change in behaviour is that we now yield once
    when unblocking other BSD-style flocks instead of once for each lock.
    
    This slightly improves the semantics for userspace.  Before, when we
    had two tasks waiting on a lock, the first one would receive the lock.
    Now, the one with the highest priority receives the lock.
    7962ad19
locks.c 46.8 KB