<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/fs/locks.c, branch linux-2.6.37.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.37.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.37.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2010-11-17T16:59:32Z</updated>
<entry>
<title>BKL: remove extraneous #include &lt;smp_lock.h&gt;</title>
<updated>2010-11-17T16:59:32Z</updated>
<author>
<name>Arnd Bergmann</name>
</author>
<published>2010-11-17T15:26:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=451a3c24b0135bce54542009b5fde43846c7cf67'/>
<id>urn:sha1:451a3c24b0135bce54542009b5fde43846c7cf67</id>
<content type='text'>
The big kernel lock has been removed from all these files at some point,
leaving only the #include.

Remove this too as a cleanup.

Signed-off-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>locks: remove dead lease error-handling code</title>
<updated>2010-11-10T19:31:29Z</updated>
<author>
<name>J. Bruce Fields</name>
</author>
<published>2010-11-03T22:09:18Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8896b93f42459b18b145c69d399b62870df48061'/>
<id>urn:sha1:8896b93f42459b18b145c69d399b62870df48061</id>
<content type='text'>
A minor oversight from f7347ce4ee7c65415f84be915c018473e7076f31,
"fasync: re-organize fasync entry insertion to allow it under a
spinlock": this cleanup-on-error was only needed to handle -ENOMEM.  Now
that we're preallocating it's unneeded.

Signed-off-by: J. Bruce Fields &lt;bfields@redhat.com&gt;
</content>
</entry>
<entry>
<title>locks: fix leak on merging leases</title>
<updated>2010-11-10T19:31:23Z</updated>
<author>
<name>J. Bruce Fields</name>
</author>
<published>2010-11-03T20:49:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3df057ac9afe83c4af84016df3baf3a0eb1d3d33'/>
<id>urn:sha1:3df057ac9afe83c4af84016df3baf3a0eb1d3d33</id>
<content type='text'>
We must also free the passed-in lease in the case it wasn't used because
an existing lease was upgrade/downgraded or already existed.

Note the nfsd caller doesn't care because it's fl_change callback
returns an error in those cases.

Signed-off-by: J. Bruce Fields &lt;bfields@redhat.com&gt;
</content>
</entry>
<entry>
<title>locks: remove fl_copy_lock lock_manager operation</title>
<updated>2010-10-31T13:35:15Z</updated>
<author>
<name>Christoph Hellwig</name>
</author>
<published>2010-10-31T12:35:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=bb8430a2c8fe2b726033017daadf73c69b0348ea'/>
<id>urn:sha1:bb8430a2c8fe2b726033017daadf73c69b0348ea</id>
<content type='text'>
This one was only used for a nasty hack in nfsd, which has recently
been removed.

Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>locks: let the caller free file_lock on -&gt;setlease failure</title>
<updated>2010-10-31T13:35:15Z</updated>
<author>
<name>Christoph Hellwig</name>
</author>
<published>2010-10-31T12:35:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=51ee4b84f5c86935b438d6636f34b523edb415a8'/>
<id>urn:sha1:51ee4b84f5c86935b438d6636f34b523edb415a8</id>
<content type='text'>
The caller allocated it, the caller should free it.

The only issue so far is that we could change the flp pointer even on an
error return if the fl_change callback failed.  But we can simply move
the flp assignment after the fl_change invocation, as the callers don't
care about the flp return value if the setlease call failed.

Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>locks: fix setlease methods to free passed-in lock</title>
<updated>2010-10-31T01:08:15Z</updated>
<author>
<name>J. Bruce Fields</name>
</author>
<published>2010-10-30T21:31:15Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=05fa3135fdc7b9b510b502a35b6b97d2b38c6f48'/>
<id>urn:sha1:05fa3135fdc7b9b510b502a35b6b97d2b38c6f48</id>
<content type='text'>
We modified setlease to require the caller to allocate the new lease in
the case of creating a new lease, but forgot to fix up the filesystem
methods.

Cc: Steven Whitehouse &lt;swhiteho@redhat.com&gt;
Cc: Steve French &lt;sfrench@samba.org&gt;
Cc: Trond Myklebust &lt;Trond.Myklebust@netapp.com&gt;
Signed-off-by: J. Bruce Fields &lt;bfields@redhat.com&gt;
Acked-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>locks: fix leaks on setlease errors</title>
<updated>2010-10-31T01:08:15Z</updated>
<author>
<name>J. Bruce Fields</name>
</author>
<published>2010-10-30T21:31:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=096657b65e1ac197e20be5ce7cff6b6ca2532787'/>
<id>urn:sha1:096657b65e1ac197e20be5ce7cff6b6ca2532787</id>
<content type='text'>
We're depending on setlease to free the passed-in lease on failure.

Signed-off-by: J. Bruce Fields &lt;bfields@redhat.com&gt;
Acked-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>locks: prevent ENOMEM on lease unlock</title>
<updated>2010-10-31T01:08:14Z</updated>
<author>
<name>J. Bruce Fields</name>
</author>
<published>2010-10-30T21:31:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0ceaf6c700f8245946a163e387add8675a0c302f'/>
<id>urn:sha1:0ceaf6c700f8245946a163e387add8675a0c302f</id>
<content type='text'>
Removing a lock shouldn't require any allocations; a failure due to
ENOMEM leaves the caller with a choice between retrying or giving up and
leaking an unused lease.

Next we should split the other lease calls into add and delete cases.
I wanted to start with just the bugfix.

Signed-off-by: J. Bruce Fields &lt;bfields@redhat.com&gt;
Acked-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>Merge branch 'flock' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/bkl</title>
<updated>2010-10-28T01:13:34Z</updated>
<author>
<name>Linus Torvalds</name>
</author>
<published>2010-10-28T01:13:34Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7420a8c0de8d99b201aeeab6fed16ca95ebf55a5'/>
<id>urn:sha1:7420a8c0de8d99b201aeeab6fed16ca95ebf55a5</id>
<content type='text'>
* 'flock' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/bkl:
  locks: turn lock_flocks into a spinlock
  fasync: re-organize fasync entry insertion to allow it under a spinlock
  locks/nfsd: allocate file lock outside of spinlock
  lockd: fix nlmsvc_notify_blocked locking
  lockd: push lock_flocks down
</content>
</entry>
<entry>
<title>locks: turn lock_flocks into a spinlock</title>
<updated>2010-10-27T20:07:36Z</updated>
<author>
<name>Arnd Bergmann</name>
</author>
<published>2010-10-27T19:39:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=72f98e72551fad573c6cace8e8551ef094f482dd'/>
<id>urn:sha1:72f98e72551fad573c6cace8e8551ef094f482dd</id>
<content type='text'>
Nothing depends on lock_flocks using the BKL
any more, so we can do the switch over to
a private spinlock.

Signed-off-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
</content>
</entry>
</feed>
