<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/fs/lockd/mon.c, branch linux-2.6.28.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.28.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.28.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2008-09-29T22:13:39Z</updated>
<entry>
<title>NSM: Use sockaddr_storage for sm_addr field</title>
<updated>2008-09-29T22:13:39Z</updated>
<author>
<name>Chuck Lever</name>
</author>
<published>2008-09-03T18:35:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7e9d7746bfd40121438b155023793796499497d8'/>
<id>urn:sha1:7e9d7746bfd40121438b155023793796499497d8</id>
<content type='text'>
To store larger addresses in the nsm_handle structure, make sm_addr a
sockaddr_storage.

Signed-off-by: Chuck Lever &lt;chuck.lever@oracle.com&gt;
Signed-off-by: J. Bruce Fields &lt;bfields@citi.umich.edu&gt;
</content>
</entry>
<entry>
<title>lockd: introduce new function to encode private argument in SM_MON requests</title>
<updated>2008-03-19T22:01:10Z</updated>
<author>
<name>Chuck Lever</name>
</author>
<published>2008-03-14T18:26:08Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0490a54a00c14212f22c5948c8c13a4553d745bd'/>
<id>urn:sha1:0490a54a00c14212f22c5948c8c13a4553d745bd</id>
<content type='text'>
Clean up: refactor the encoding of the opaque 16-byte private argument in
xdr_encode_mon().  This will be updated later to support IPv6 addresses.

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: Fix up incorrect RPC buffer size calculations.</title>
<updated>2008-03-19T22:01:07Z</updated>
<author>
<name>Chuck Lever</name>
</author>
<published>2008-03-14T18:26:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2ca7754d4c96d68e1475690422a202ba5f0443d8'/>
<id>urn:sha1:2ca7754d4c96d68e1475690422a202ba5f0443d8</id>
<content type='text'>
Switch to using the new mon_id encoder function.

Now that we've refactored the encoding of SM_MON requests, we've
discovered that the pre-computed buffer length maximums are
incorrect!

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: document use of mon_id argument in SM_MON requests</title>
<updated>2008-03-19T22:01:04Z</updated>
<author>
<name>Chuck Lever</name>
</author>
<published>2008-03-14T18:25:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ea72a7f170e686baf00ceee57b6197bef686889c'/>
<id>urn:sha1:ea72a7f170e686baf00ceee57b6197bef686889c</id>
<content type='text'>
Clean up: document the argument type that xdr_encode_common() is
marshalling by introducing a new function.  The new function will replace
xdr_encode_common() in just a sec.

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: refactor SM_MON my_id argument encoder</title>
<updated>2008-03-19T22:01:01Z</updated>
<author>
<name>Chuck Lever</name>
</author>
<published>2008-03-14T18:25:46Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=850c95fd07b63704d06909c9a081c51272d32db1'/>
<id>urn:sha1:850c95fd07b63704d06909c9a081c51272d32db1</id>
<content type='text'>
Clean up: introduce a new XDR encoder specifically for the my_id
argument of SM_MON requests.

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: refactor SM_MON mon_name argument encoder</title>
<updated>2008-03-19T22:00:57Z</updated>
<author>
<name>Chuck Lever</name>
</author>
<published>2008-03-14T18:25:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=496951743100b2d2ccd8b268257e79425e489851'/>
<id>urn:sha1:496951743100b2d2ccd8b268257e79425e489851</id>
<content type='text'>
Clean up: introduce a new XDR encoder specifically for the mon_name
argument of SM_MON requests.  This will be updated later to support IPv6
addresses in addition to IPv4 addresses.

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: Ensure NSM strings aren't longer than protocol allows</title>
<updated>2008-03-19T22:00:54Z</updated>
<author>
<name>Chuck Lever</name>
</author>
<published>2008-03-14T18:25:32Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=099bd05f27ff24a3041d54e7ed42d2eb681484b9'/>
<id>urn:sha1:099bd05f27ff24a3041d54e7ed42d2eb681484b9</id>
<content type='text'>
Introduce a special helper function to check the length of NSM strings
before they are placed on the wire.

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>NFS/SUNRPC: use transport protocol naming</title>
<updated>2007-10-09T21:17:53Z</updated>
<author>
<name>\"Talpey, Thomas\</name>
</author>
<published>2007-09-10T17:48:23Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0896a725a1c5fdc8773a4d1ab0b73059507f5925'/>
<id>urn:sha1:0896a725a1c5fdc8773a4d1ab0b73059507f5925</id>
<content type='text'>
Instead of an { address family, raw IP protocol number }-tuple, use the
newly-defined RPC identifier when creating clients in the upper layers.

Signed-off-by: Tom Talpey &lt;tmt@netapp.com&gt;
Signed-off-by: Trond Myklebust &lt;Trond.Myklebust@netapp.com&gt;
</content>
</entry>
<entry>
<title>SUNRPC: Kill rpc_clnt-&gt;cl_oneshot</title>
<updated>2007-07-11T03:40:29Z</updated>
<author>
<name>Trond Myklebust</name>
</author>
<published>2007-06-09T23:49:36Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=90c5755ff5111ffdcca10a1e8a823dba29f37b6d'/>
<id>urn:sha1:90c5755ff5111ffdcca10a1e8a823dba29f37b6d</id>
<content type='text'>
Replace it with explicit calls to rpc_shutdown_client() or
rpc_destroy_client() (for the case of asynchronous calls).

Signed-off-by: Trond Myklebust &lt;Trond.Myklebust@netapp.com&gt;
</content>
</entry>
<entry>
<title>SUNRPC: RPC buffer size estimates are too large</title>
<updated>2007-05-01T05:17:10Z</updated>
<author>
<name>Chuck Lever</name>
</author>
<published>2007-03-29T20:47:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2bea90d43a050bbc4021d44e59beb34f384438db'/>
<id>urn:sha1:2bea90d43a050bbc4021d44e59beb34f384438db</id>
<content type='text'>
The RPC buffer size estimation logic in net/sunrpc/clnt.c always
significantly overestimates the requirements for the buffer size.
A little instrumentation demonstrated that in fact rpc_malloc was never
allocating the buffer from the mempool, but almost always called kmalloc.

To compute the size of the RPC buffer more precisely, split p_bufsiz into
two fields; one for the argument size, and one for the result size.

Then, compute the sum of the exact call and reply header sizes, and split
the RPC buffer precisely between the two.  That should keep almost all RPC
buffers within the 2KiB buffer mempool limit.

And, we can finally be rid of RPC_SLACK_SPACE!

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>
