<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/fs/lockd, branch v3.0.36</title>
<subtitle>Linux kernel source tree</subtitle>
<id>https://git.amat.us/linux/atom/fs/lockd?h=v3.0.36</id>
<link rel='self' href='https://git.amat.us/linux/atom/fs/lockd?h=v3.0.36'/>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/'/>
<updated>2012-04-27T16:51:18Z</updated>
<entry>
<title>lockd: fix the endianness bug</title>
<updated>2012-04-27T16:51:18Z</updated>
<author>
<name>Al Viro</name>
<email>viro@zeniv.linux.org.uk</email>
</author>
<published>2012-04-13T17:49:47Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=9740f1d824f30d9961ab406990e3a420299afb6f'/>
<id>urn:sha1:9740f1d824f30d9961ab406990e3a420299afb6f</id>
<content type='text'>
commit e847469bf77a1d339274074ed068d461f0c872bc upstream.

comparing be32 values for &lt; is not doing the right thing...

Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
Cc: "J. Bruce Fields" &lt;bfields@fieldses.org&gt;
Cc: Trond Myklebust &lt;Trond.Myklebust@netapp.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>lockd: fix arg parsing for grace_period and timeout.</title>
<updated>2012-04-02T16:27:21Z</updated>
<author>
<name>NeilBrown</name>
<email>neilb@suse.de</email>
</author>
<published>2012-02-07T04:35:42Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=7b1e2d3c528c25cdd4691e3f8c1fdc3275e5de96'/>
<id>urn:sha1:7b1e2d3c528c25cdd4691e3f8c1fdc3275e5de96</id>
<content type='text'>
commit de5b8e8e047534aac6bc9803f96e7257436aef9c upstream.

If you try to set grace_period or timeout via a module parameter
to lockd, and do this on a big-endian machine where

   sizeof(int) != sizeof(unsigned long)

it won't work.  This number given will be effectively shifted right
by the difference in those two sizes.

So cast kp-&gt;arg properly to get correct result.

Signed-off-by: NeilBrown &lt;neilb@suse.de&gt;
Signed-off-by: J. Bruce Fields &lt;bfields@redhat.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>NLM: Don't hang forever on NLM unlock requests</title>
<updated>2011-06-15T15:24:27Z</updated>
<author>
<name>Trond Myklebust</name>
<email>Trond.Myklebust@netapp.com</email>
</author>
<published>2011-05-31T19:15:34Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=0b760113a3a155269a3fba93a409c640031dd68f'/>
<id>urn:sha1:0b760113a3a155269a3fba93a409c640031dd68f</id>
<content type='text'>
If the NLM daemon is killed on the NFS server, we can currently end up
hanging forever on an 'unlock' request, instead of aborting. Basically,
if the rpcbind request fails, or the server keeps returning garbage, we
really want to quit instead of retrying.

Tested-by: Vasily Averin &lt;vvs@sw.ru&gt;
Signed-off-by: Trond Myklebust &lt;Trond.Myklebust@netapp.com&gt;
Cc: stable@kernel.org
</content>
</entry>
<entry>
<title>NLM: Fix "kernel BUG at fs/lockd/host.c:417!" or ".../host.c:283!"</title>
<updated>2011-01-25T20:24:47Z</updated>
<author>
<name>Chuck Lever</name>
<email>chuck.lever@oracle.com</email>
</author>
<published>2011-01-24T20:50:26Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=80c30e8de4f81851b1f712bcc596e11d53bc76f1'/>
<id>urn:sha1:80c30e8de4f81851b1f712bcc596e11d53bc76f1</id>
<content type='text'>
Nick Bowler &lt;nbowler@elliptictech.com&gt; reports:

&gt; We were just having some NFS server troubles, and my client machine
&gt; running 2.6.38-rc1+ (specifically, commit 2b1caf6ed7b888c95) crashed
&gt; hard (syslog output appended to this mail).
&gt;
&gt; I'm not sure what the exact timeline was or how to reproduce this,
&gt; but the server was rebooted during all this.  Since I've never seen
&gt; this happen before, it is possibly a regression from previous kernel
&gt; releases.  However, I recently updated my nfs-utils (on the client) to
&gt; version 1.2.3, so that might be related as well.

  [ BUG output redacted ]

When done searching, the for_each_host loop in next_host_state() falls
through and returns the final host on the host chain without bumping
it's reference count.

Since the host's ref count is only one at that point, releasing the
host in nlm_host_rebooted() attempts to destroy the host prematurely,
and therefore hits a BUG().

Likely, the original intent of the for_each_host behavior in
next_host_state() was to handle the case when the host chain is empty.
Searching the chain and finding no suitable host to return needs to be
handled as well.

Defensively restructure next_host_state() always to return NULL when
the loop falls through.

Introduced by commit b10e30f6 "lockd: reorganize nlm_host_rebooted".

Cc: J. Bruce Fields &lt;bfields@fieldses.org&gt;
Signed-off-by: Chuck Lever &lt;chuck.lever@oracle.com&gt;
Signed-off-by: Trond Myklebust &lt;Trond.Myklebust@netapp.com&gt;
</content>
</entry>
<entry>
<title>lockd: double unlock in next_host_state()</title>
<updated>2011-01-04T18:10:37Z</updated>
<author>
<name>Dan Carpenter</name>
<email>error27@gmail.com</email>
</author>
<published>2011-01-02T20:20:42Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=51f128ea1c9224c1e3cf6c6a1498431d97699668'/>
<id>urn:sha1:51f128ea1c9224c1e3cf6c6a1498431d97699668</id>
<content type='text'>
We unlock again after we goto out.

Signed-off-by: Dan Carpenter &lt;error27@gmail.com&gt;
Signed-off-by: Trond Myklebust &lt;Trond.Myklebust@netapp.com&gt;
</content>
</entry>
<entry>
<title>lockd: Remove src_sap and src_len from nlm_lookup_host_info struct</title>
<updated>2010-12-16T17:37:27Z</updated>
<author>
<name>Chuck Lever</name>
<email>chuck.lever@oracle.com</email>
</author>
<published>2010-12-14T15:06:52Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=79691836603541e81a3793970826ac4a75429572'/>
<id>urn:sha1:79691836603541e81a3793970826ac4a75429572</id>
<content type='text'>
Clean up.

The contents of the src_sap field is not used in nlm_alloc_host().

Signed-off-by: Chuck Lever &lt;chuck.lever@oracle.com&gt;
Signed-off-by: Trond Myklebust &lt;Trond.Myklebust@netapp.com&gt;
</content>
</entry>
<entry>
<title>lockd: Remove nlm_lookup_host()</title>
<updated>2010-12-16T17:37:27Z</updated>
<author>
<name>Chuck Lever</name>
<email>chuck.lever@oracle.com</email>
</author>
<published>2010-12-14T15:06:41Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=2025889828bb14b56d9aa4c1a785bd9847ccdc4b'/>
<id>urn:sha1:2025889828bb14b56d9aa4c1a785bd9847ccdc4b</id>
<content type='text'>
Clean up.

Remove the now unused helper nlm_lookup_host().

Signed-off-by: Chuck Lever &lt;chuck.lever@oracle.com&gt;
Signed-off-by: Trond Myklebust &lt;Trond.Myklebust@netapp.com&gt;
</content>
</entry>
<entry>
<title>lockd: Make nrhosts an unsigned long</title>
<updated>2010-12-16T17:37:27Z</updated>
<author>
<name>Chuck Lever</name>
<email>chuck.lever@oracle.com</email>
</author>
<published>2010-12-14T15:06:32Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=fcc072c783491ca465e4d1e74da7dbb48dbf7a31'/>
<id>urn:sha1:fcc072c783491ca465e4d1e74da7dbb48dbf7a31</id>
<content type='text'>
Clean up.

Signed-off-by: Chuck Lever &lt;chuck.lever@oracle.com&gt;
Signed-off-by: Trond Myklebust &lt;Trond.Myklebust@netapp.com&gt;
</content>
</entry>
<entry>
<title>lockd: Rename nlm_hosts</title>
<updated>2010-12-16T17:37:27Z</updated>
<author>
<name>Chuck Lever</name>
<email>chuck.lever@oracle.com</email>
</author>
<published>2010-12-14T15:06:22Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=d2df0484bb38f2e0d9754b00597d4a6d1cf666d0'/>
<id>urn:sha1:d2df0484bb38f2e0d9754b00597d4a6d1cf666d0</id>
<content type='text'>
Clean up.

nlm_hosts now contains only server-side entries.  Rename it to match
convention of client side cache.

Signed-off-by: Chuck Lever &lt;chuck.lever@oracle.com&gt;
Signed-off-by: Trond Myklebust &lt;Trond.Myklebust@netapp.com&gt;
</content>
</entry>
<entry>
<title>lockd: Clean up nlmsvc_lookup_host()</title>
<updated>2010-12-16T17:37:26Z</updated>
<author>
<name>Chuck Lever</name>
<email>chuck.lever@oracle.com</email>
</author>
<published>2010-12-14T15:06:12Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=67216b94d498f5880d8bba2a6b841880739dd524'/>
<id>urn:sha1:67216b94d498f5880d8bba2a6b841880739dd524</id>
<content type='text'>
Clean up.

Change nlmsvc_lookup_host() to be purpose-built for server-side
nlm_host management.  This replaces the generic nlm_lookup_host()
helper function, just like on the client side.  The lookup logic is
specialized for server host lookups.

The server side cache also gets its own specialized equivalent of the
nlm_release_host() function.

Signed-off-by: Chuck Lever &lt;chuck.lever@oracle.com&gt;
Signed-off-by: Trond Myklebust &lt;Trond.Myklebust@netapp.com&gt;
</content>
</entry>
</feed>
