]> git.baikalelectronics.ru Git - kernel.git/commit
AFS: fix file locking
authorDavid Howells <dhowells@redhat.com>
Tue, 31 Jul 2007 07:38:49 +0000 (00:38 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 31 Jul 2007 22:39:40 +0000 (15:39 -0700)
commitb86b2e3f9c0424e68f1ad90fec1f3df2d0bd6e10
tree5fa45dae4ca7a180db2e83e4bc731c2a567f1f0d
parent38c737b9e699a995745f53c9fff3a61c55d0ed26
AFS: fix file locking

Fix file locking for AFS:

 (*) Start the lock manager thread under a mutex to avoid a race.

 (*) Made the locking non-fair: New readlocks will jump pending writelocks if
     there's a readlock currently granted on a file.  This makes the behaviour
     similar to Linux's VFS locking.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/afs/flock.c