<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/net/sunrpc, branch v2.6.20.3</title>
<subtitle>Linux kernel source tree</subtitle>
<id>https://git.amat.us/linux/atom/net/sunrpc?h=v2.6.20.3</id>
<link rel='self' href='https://git.amat.us/linux/atom/net/sunrpc?h=v2.6.20.3'/>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/'/>
<updated>2007-03-09T18:50:29Z</updated>
<entry>
<title>RPM: fix double free in portmapper code</title>
<updated>2007-03-09T18:50:29Z</updated>
<author>
<name>Trond Myklebust</name>
<email>Trond.Myklebust@netapp.com</email>
</author>
<published>2007-02-05T20:33:22Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=af2fec7364857f677b3f9ee3617ee9fbc849e6bd'/>
<id>urn:sha1:af2fec7364857f677b3f9ee3617ee9fbc849e6bd</id>
<content type='text'>
rpc_run_task is guaranteed to always call -&gt;rpc_release.

Signed-off-by: Trond Myklebust &lt;Trond.Myklebust@netapp.com&gt;
Cc: Neil Brown &lt;neilb@suse.de&gt;
Cc: Jan "Yenya" Kasprzak &lt;kas@fi.muni.cz&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;


</content>
</entry>
<entry>
<title>Fix recently introduced problem with shutting down a busy NFS server.</title>
<updated>2007-03-09T18:50:21Z</updated>
<author>
<name>NeilBrown</name>
<email>neilb@suse.de</email>
</author>
<published>2007-03-06T06:11:33Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=c5f165355bdf4b813f164a64ca09f7d92ba6b20b'/>
<id>urn:sha1:c5f165355bdf4b813f164a64ca09f7d92ba6b20b</id>
<content type='text'>
When the last thread of nfsd exits, it shuts down all related sockets.
It currently uses svc_close_socket to do this, but that only is
immediately effective if the socket is not SK_BUSY.

If the socket is busy - i.e. if a request has arrived that has not yet
been processes - svc_close_socket is not effective and the shutdown
process spins.

So create a new svc_force_close_socket which removes the SK_BUSY flag
is set and then calls svc_close_socket.

Also change some open-codes loops in svc_destroy to use
list_for_each_entry_safe.

Signed-off-by: Neil Brown &lt;neilb@suse.de&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;


</content>
</entry>
<entry>
<title>Avoid using nfsd process pools on SMP machines.</title>
<updated>2007-03-09T18:50:21Z</updated>
<author>
<name>NeilBrown</name>
<email>neilb@suse.de</email>
</author>
<published>2007-03-06T06:11:29Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=97f35487312eb92de7f3dc5f44779b6a2bb84e67'/>
<id>urn:sha1:97f35487312eb92de7f3dc5f44779b6a2bb84e67</id>
<content type='text'>
process-pools have real benefits for NUMA, but on SMP
machines they only work if network interface interrupts
go to all CPUs (via round-robin or multiple nics).  This is
not always the case, so disable the pools in this case until
a better solution is developped.

Signed-off-by: Neil Brown &lt;neilb@suse.de&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

diff .prev/net/sunrpc/svc.c ./net/sunrpc/svc.c
</content>
</entry>
<entry>
<title>knfsd: Fix a race in closing NFSd connections.</title>
<updated>2007-03-09T18:50:18Z</updated>
<author>
<name>NeilBrown</name>
<email>neilb@suse.de</email>
</author>
<published>2007-02-07T00:10:26Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=b3725e12ab2cf9e0f1254506baef3f9206520d3e'/>
<id>urn:sha1:b3725e12ab2cf9e0f1254506baef3f9206520d3e</id>
<content type='text'>
If you lose this race, it can iput a socket inode twice and you
get a BUG in fs/inode.c

When I added the option for user-space to close a socket,
I added some cruft to svc_delete_socket so that I could call
that function when closing a socket per user-space request.

This was the wrong thing to do.  I should have just set SK_CLOSE
and let normal mechanisms do the work.

Not only wrong, but buggy.  The locking is all wrong and it openned
up a race where-by a socket could be closed twice.

So this patch:
  Introduces svc_close_socket which sets SK_CLOSE then either leave
  the close up to a thread, or calls svc_delete_socket if it can
  get SK_BUSY.

  Adds a bias to sk_busy which is removed when SK_DEAD is set,
  This avoid races around shutting down the socket.

  Changes several 'spin_lock' to 'spin_lock_bh' where the _bh 
  was missing.

Bugzilla-url: http://bugzilla.kernel.org/show_bug.cgi?id=7916

Signed-off-by: Neil Brown &lt;neilb@suse.de&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;


</content>
</entry>
<entry>
<title>[PATCH] knfsd: ratelimit some nfsd messages that are triggered by external events</title>
<updated>2007-01-30T16:26:45Z</updated>
<author>
<name>NeilBrown</name>
<email>neilb@suse.de</email>
</author>
<published>2007-01-29T21:19:52Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=34e9a63b4f3e169b583f6ba2e26356ecbf932fba'/>
<id>urn:sha1:34e9a63b4f3e169b583f6ba2e26356ecbf932fba</id>
<content type='text'>
Also remove {NFSD,RPC}_PARANOIA as having the defines doesn't really add
anything.

The printks covered by RPC_PARANOIA were triggered by badly formatted
packets and so should be ratelimited.

Signed-off-by: Neil Brown &lt;neilb@suse.de&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] knfsd: fix an NFSD bug with full sized, non-page-aligned reads</title>
<updated>2007-01-26T21:50:59Z</updated>
<author>
<name>NeilBrown</name>
<email>neilb@suse.de</email>
</author>
<published>2007-01-26T08:56:59Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=250f3915183d377d36e012bac9caa7345ce465b8'/>
<id>urn:sha1:250f3915183d377d36e012bac9caa7345ce465b8</id>
<content type='text'>
NFSd assumes that largest number of pages that will be needed for a
request+response is 2+N where N pages is the size of the largest permitted
read/write request.  The '2' are 1 for the non-data part of the request, and 1
for the non-data part of the reply.

However, when a read request is not page-aligned, and we choose to use
-&gt;sendfile to send it directly from the page cache, we may need N+1 pages to
hold the whole reply.  This can overflow and array and cause an Oops.

This patch increases size of the array for holding pages by one and makes sure
that entry is NULL when it is not in use.

Signed-off-by: Neil Brown &lt;neilb@suse.de&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] knfsd: fix setting of ACL server versions</title>
<updated>2007-01-26T21:50:59Z</updated>
<author>
<name>NeilBrown</name>
<email>neilb@suse.de</email>
</author>
<published>2007-01-26T08:56:58Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=1a8eff6d977c28162c61c9532ca58634e7090b69'/>
<id>urn:sha1:1a8eff6d977c28162c61c9532ca58634e7090b69</id>
<content type='text'>
Due to silly typos, if the nfs versions are explicitly set, no NFSACL versions
get enabled.

Also improve an error message that would have made this bug a little easier to
find.

Signed-off-by: Neil Brown &lt;neilb@suse.de&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] NFS: Fix Oops in rpc_call_sync()</title>
<updated>2007-01-24T20:31:06Z</updated>
<author>
<name>Trond Myklebust</name>
<email>Trond.Myklebust@netapp.com</email>
</author>
<published>2007-01-24T19:54:53Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=bde8f00ce64d9824a4f227c8594e335a1a10d044'/>
<id>urn:sha1:bde8f00ce64d9824a4f227c8594e335a1a10d044</id>
<content type='text'>
Fix the Oops in http://bugzilla.linux-nfs.org/show_bug.cgi?id=138
We shouldn't be calling rpc_release_task() for tasks that are not active.

Signed-off-by: Trond Myklebust &lt;Trond.Myklebust@netapp.com&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] gss_spkm3: fix error handling in module init</title>
<updated>2006-12-22T16:55:49Z</updated>
<author>
<name>Akinobu Mita</name>
<email>akinobu.mita@gmail.com</email>
</author>
<published>2006-12-22T09:10:09Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=fadfc8e930dcaf502b49a0a0170ba8ebe9a34c49'/>
<id>urn:sha1:fadfc8e930dcaf502b49a0a0170ba8ebe9a34c49</id>
<content type='text'>
Return error and prevent from loading module when gss_mech_register()
failed.

Cc: Andy Adamson &lt;andros@citi.umich.edu&gt;
Cc: J. Bruce Fields &lt;bfields@citi.umich.edu&gt;
Acked-by: Trond Myklebust &lt;Trond.Myklebust@netapp.com&gt;
Signed-off-by: Akinobu Mita &lt;akinobu.mita@gmail.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] knfsd: Don't ignore kstrdup failure in rpc caches</title>
<updated>2006-12-13T17:05:54Z</updated>
<author>
<name>NeilBrown</name>
<email>neilb@suse.de</email>
</author>
<published>2006-12-13T08:35:44Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=dd08d6ea443abafe9455997d2889719364b8794b'/>
<id>urn:sha1:dd08d6ea443abafe9455997d2889719364b8794b</id>
<content type='text'>
Signed-off-by: Neil Brown &lt;neilb@suse.de&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
</feed>
