<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/fs/afs/flock.c, branch linux-3.10.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.10.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.10.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2013-02-23T04:31:31Z</updated>
<entry>
<title>new helper: file_inode(file)</title>
<updated>2013-02-23T04:31:31Z</updated>
<author>
<name>Al Viro</name>
</author>
<published>2013-01-23T22:07:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=496ad9aa8ef448058e36ca7a787c61f2e63f0f54'/>
<id>urn:sha1:496ad9aa8ef448058e36ca7a787c61f2e63f0f54</id>
<content type='text'>
Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
</content>
</entry>
<entry>
<title>fs/locks.c: prepare for BKL removal</title>
<updated>2010-10-05T09:02:04Z</updated>
<author>
<name>Arnd Bergmann</name>
</author>
<published>2010-09-18T13:09:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b89f432133851a01c0d28822f11cbdcc15781a75'/>
<id>urn:sha1:b89f432133851a01c0d28822f11cbdcc15781a75</id>
<content type='text'>
This prepares the removal of the big kernel lock from the
file locking code. We still use the BKL as long as fs/lockd
uses it and ceph might sleep, but we can flip the definition
to a private spinlock as soon as that's done.
All users outside of fs/lockd get converted to use
lock_flocks() instead of lock_kernel() where appropriate.

Based on an earlier patch to use a spinlock from Matthew
Wilcox, who has attempted this a few times before, the
earliest patch from over 10 years ago turned it into
a semaphore, which ended up being slower than the BKL
and was subsequently reverted.

Someone should do some serious performance testing when
this becomes a spinlock, since this has caused problems
before. Using a spinlock should be at least as good
as the BKL in theory, but who knows...

Signed-off-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
Acked-by: Matthew Wilcox &lt;willy@linux.intel.com&gt;
Cc: Christoph Hellwig &lt;hch@lst.de&gt;
Cc: Trond Myklebust &lt;trond.myklebust@fys.uio.no&gt;
Cc: "J. Bruce Fields" &lt;bfields@fieldses.org&gt;
Cc: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Cc: Miklos Szeredi &lt;mszeredi@suse.cz&gt;
Cc: Frederic Weisbecker &lt;fweisbec@gmail.com&gt;
Cc: Ingo Molnar &lt;mingo@redhat.com&gt;
Cc: John Kacur &lt;jkacur@redhat.com&gt;
Cc: Sage Weil &lt;sage@newdream.net&gt;
Cc: linux-kernel@vger.kernel.org
Cc: linux-fsdevel@vger.kernel.org
</content>
</entry>
<entry>
<title>const: make file_lock_operations const</title>
<updated>2009-09-22T14:17:25Z</updated>
<author>
<name>Alexey Dobriyan</name>
</author>
<published>2009-09-22T00:01:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6aed62853c72e29f2c97bbac7712cb398e8c9437'/>
<id>urn:sha1:6aed62853c72e29f2c97bbac7712cb398e8c9437</id>
<content type='text'>
Signed-off-by: Alexey Dobriyan &lt;adobriyan@gmail.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>AFS: Fix lock imbalance</title>
<updated>2009-06-30T20:30:44Z</updated>
<author>
<name>Jiri Slaby</name>
</author>
<published>2009-06-30T20:10:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f7c2df9b55212d5ec94169a4de11e44c683e0af4'/>
<id>urn:sha1:f7c2df9b55212d5ec94169a4de11e44c683e0af4</id>
<content type='text'>
Don't unlock on vfs_rejected_lock path in afs_do_setlk, since the lock
is unlocked after abort_attempt label.

Signed-off-by: Jiri Slaby &lt;jirislaby@gmail.com&gt;
Signed-off-by: David Howells &lt;dhowells@redhat.com&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>AFS: clean up explicit check for mandatory locks</title>
<updated>2007-10-09T22:32:46Z</updated>
<author>
<name>Pavel Emelyanov</name>
</author>
<published>2007-10-01T21:41:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=fc5846e555177c2ae01bcded7fddf60cb10dcfd0'/>
<id>urn:sha1:fc5846e555177c2ae01bcded7fddf60cb10dcfd0</id>
<content type='text'>
The __mandatory_lock(inode) macro makes the same check, but makes the code
more readable.

Signed-off-by: Pavel Emelyanov &lt;xemul@openvz.org&gt;
Cc: David Howells &lt;dhowells@redhat.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>AFS: fix file locking</title>
<updated>2007-07-31T22:39:40Z</updated>
<author>
<name>David Howells</name>
</author>
<published>2007-07-31T07:38:49Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ff8e210a9550ad760a62e9803938cd04f9fb0851'/>
<id>urn:sha1:ff8e210a9550ad760a62e9803938cd04f9fb0851</id>
<content type='text'>
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 &lt;dhowells@redhat.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>afs build fix</title>
<updated>2007-07-19T17:04:57Z</updated>
<author>
<name>Andrew Morton</name>
</author>
<published>2007-07-19T08:50:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=275afcac9953ece0828972edeab9684cfe1a5ef3'/>
<id>urn:sha1:275afcac9953ece0828972edeab9684cfe1a5ef3</id>
<content type='text'>
Bruce and David's patches clashed.

fs/afs/flock.c: In function 'afs_do_getlk':
fs/afs/flock.c:459: error: void value not ignored as it ought to be

Cc: "J. Bruce Fields" &lt;bfields@fieldses.org&gt;
Acked-by: David Howells &lt;dhowells@redhat.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>AFS: implement file locking</title>
<updated>2007-07-16T16:05:43Z</updated>
<author>
<name>David Howells</name>
</author>
<published>2007-07-16T06:40:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e8d6c554126b830217c5e9f549e0e21f865a0a8a'/>
<id>urn:sha1:e8d6c554126b830217c5e9f549e0e21f865a0a8a</id>
<content type='text'>
Implement file locking for AFS.

Signed-off-by: David Howells &lt;dhowells@redhat.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
</feed>
