]> git.neil.brown.name Git - history.git/commit
[PATCH] fs/locks.c: Only yield once for flocks
authorMatthew Wilcox <willy@debian.org>
Sat, 8 Jun 2002 09:09:24 +0000 (02:09 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Sat, 8 Jun 2002 09:09:24 +0000 (02:09 -0700)
commit7962ad19e6300531784722c16849837864304d84
treed85c3fde513db5c008dfa7587dd66cafee2a5d59
parent07900f7ae5da5c09de2070af8e3e71c2ad1b63ed
[PATCH] fs/locks.c: Only yield once for flocks

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.
fs/locks.c