<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/net/ceph/messenger.c, branch linux-3.5.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.5.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.5.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2012-07-18T02:35:59Z</updated>
<entry>
<title>libceph: fix messenger retry</title>
<updated>2012-07-18T02:35:59Z</updated>
<author>
<name>Sage Weil</name>
</author>
<published>2012-07-10T18:53:34Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5bdca4e0768d3e0f4efa43d9a2cc8210aeb91ab9'/>
<id>urn:sha1:5bdca4e0768d3e0f4efa43d9a2cc8210aeb91ab9</id>
<content type='text'>
In ancient times, the messenger could both initiate and accept connections.
An artifact if that was data structures to store/process an incoming
ceph_msg_connect request and send an outgoing ceph_msg_connect_reply.
Sadly, the negotiation code was referencing those structures and ignoring
important information (like the peer's connect_seq) from the correct ones.

Among other things, this fixes tight reconnect loops where the server sends
RETRY_SESSION and we (the client) retries with the same connect_seq as last
time.  This bug pretty easily triggered by injecting socket failures on the
MDS and running some fs workload like workunits/direct_io/test_sync_io.

Signed-off-by: Sage Weil &lt;sage@inktank.com&gt;
</content>
</entry>
<entry>
<title>rbd: Clear ceph_msg-&gt;bio_iter for retransmitted message</title>
<updated>2012-06-20T12:43:50Z</updated>
<author>
<name>Yan, Zheng</name>
</author>
<published>2012-06-07T00:35:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b132cf4c733f91bb4dd2277ea049243cf16e8b66'/>
<id>urn:sha1:b132cf4c733f91bb4dd2277ea049243cf16e8b66</id>
<content type='text'>
The bug can cause NULL pointer dereference in write_partial_msg_pages

Signed-off-by: Zheng Yan &lt;zheng.z.yan@intel.com&gt;
Reviewed-by: Alex Elder &lt;elder@inktank.com&gt;
(cherry picked from commit 43643528cce60ca184fe8197efa8e8da7c89a037)
</content>
</entry>
<entry>
<title>Merge git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client</title>
<updated>2012-05-30T18:17:19Z</updated>
<author>
<name>Linus Torvalds</name>
</author>
<published>2012-05-30T18:17:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=af56e0aa35f3ae2a4c1a6d1000702df1dd78cb76'/>
<id>urn:sha1:af56e0aa35f3ae2a4c1a6d1000702df1dd78cb76</id>
<content type='text'>
Pull ceph updates from Sage Weil:
 "There are some updates and cleanups to the CRUSH placement code, a bug
  fix with incremental maps, several cleanups and fixes from Josh Durgin
  in the RBD block device code, a series of cleanups and bug fixes from
  Alex Elder in the messenger code, and some miscellaneous bounds
  checking and gfp cleanups/fixes."

Fix up trivial conflicts in net/ceph/{messenger.c,osdmap.c} due to the
networking people preferring "unsigned int" over just "unsigned".

* git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client: (45 commits)
  libceph: fix pg_temp updates
  libceph: avoid unregistering osd request when not registered
  ceph: add auth buf in prepare_write_connect()
  ceph: rename prepare_connect_authorizer()
  ceph: return pointer from prepare_connect_authorizer()
  ceph: use info returned by get_authorizer
  ceph: have get_authorizer methods return pointers
  ceph: ensure auth ops are defined before use
  ceph: messenger: reduce args to create_authorizer
  ceph: define ceph_auth_handshake type
  ceph: messenger: check return from get_authorizer
  ceph: messenger: rework prepare_connect_authorizer()
  ceph: messenger: check prepare_write_connect() result
  ceph: don't set WRITE_PENDING too early
  ceph: drop msgr argument from prepare_write_connect()
  ceph: messenger: send banner in process_connect()
  ceph: messenger: reset connection kvec caller
  libceph: don't reset kvec in prepare_write_banner()
  ceph: ignore preferred_osd field
  ceph: fully initialize new layout
  ...
</content>
</entry>
<entry>
<title>ceph: add auth buf in prepare_write_connect()</title>
<updated>2012-05-19T00:35:59Z</updated>
<author>
<name>Alex Elder</name>
</author>
<published>2012-05-16T20:16:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3da54776e2c0385c32d143fd497a7f40a88e29dd'/>
<id>urn:sha1:3da54776e2c0385c32d143fd497a7f40a88e29dd</id>
<content type='text'>
Move the addition of the authorizer buffer to a connection's
out_kvec out of get_connect_authorizer() and into its caller.  This
way, the caller--prepare_write_connect()--can avoid adding the
connect header to out_kvec before it has been fully initialized.

Prior to this patch, it was possible for a connect header to be
sent over the wire before the authorizer protocol or buffer length
fields were initialized.  An authorizer buffer associated with that
header could also be queued to send only after the connection header
that describes it was on the wire.

Fixes http://tracker.newdream.net/issues/2424

Signed-off-by: Alex Elder &lt;elder@inktank.com&gt;
Reviewed-by: Sage Weil &lt;sage@inktank.com&gt;
</content>
</entry>
<entry>
<title>ceph: rename prepare_connect_authorizer()</title>
<updated>2012-05-17T13:18:13Z</updated>
<author>
<name>Alex Elder</name>
</author>
<published>2012-05-16T20:16:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=dac1e716c60161867a47745bca592987ca3a9cb2'/>
<id>urn:sha1:dac1e716c60161867a47745bca592987ca3a9cb2</id>
<content type='text'>
Change the name of prepare_connect_authorizer().  The next
patch is going to make this function no longer add anything to the
connection's out_kvec, so it will no longer fit the pattern of
the rest of the prepare_connect_*() functions.

In addition, pass the address of a variable that will hold the
authorization protocol to use.  Move the assignment of that to the
connection's out_connect structure into prepare_write_connect().

Signed-off-by: Alex Elder &lt;elder@inktank.com&gt;
Reviewed-by: Sage Weil &lt;sage@inktank.com&gt;
</content>
</entry>
<entry>
<title>ceph: return pointer from prepare_connect_authorizer()</title>
<updated>2012-05-17T13:18:13Z</updated>
<author>
<name>Alex Elder</name>
</author>
<published>2012-05-16T20:16:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=729796be9190f57ca40ccca315e8ad34a1eb8fef'/>
<id>urn:sha1:729796be9190f57ca40ccca315e8ad34a1eb8fef</id>
<content type='text'>
Change prepare_connect_authorizer() so it returns a pointer (or
pointer-coded error).

Signed-off-by: Alex Elder &lt;elder@inktank.com&gt;
Reviewed-by: Sage Weil &lt;sage@inktank.com&gt;
</content>
</entry>
<entry>
<title>ceph: use info returned by get_authorizer</title>
<updated>2012-05-17T13:18:13Z</updated>
<author>
<name>Alex Elder</name>
</author>
<published>2012-05-16T20:16:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8f43fb53894079bf0caab6e348ceaffe7adc651a'/>
<id>urn:sha1:8f43fb53894079bf0caab6e348ceaffe7adc651a</id>
<content type='text'>
Rather than passing a bunch of arguments to be filled in with the
content of the ceph_auth_handshake buffer now returned by the
get_authorizer method, just use the returned information in the
caller, and drop the unnecessary arguments.

Signed-off-by: Alex Elder &lt;elder@inktank.com&gt;
Reviewed-by: Sage Weil &lt;sage@inktank.com&gt;
</content>
</entry>
<entry>
<title>ceph: have get_authorizer methods return pointers</title>
<updated>2012-05-17T13:18:13Z</updated>
<author>
<name>Alex Elder</name>
</author>
<published>2012-05-16T20:16:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a3530df33eb91d787d08c7383a0a9982690e42d0'/>
<id>urn:sha1:a3530df33eb91d787d08c7383a0a9982690e42d0</id>
<content type='text'>
Have the get_authorizer auth_client method return a ceph_auth
pointer rather than an integer, pointer-encoding any returned
error value.  This is to pave the way for making use of the
returned value in an upcoming patch.

Signed-off-by: Alex Elder &lt;elder@inktank.com&gt;
Reviewed-by: Sage Weil &lt;sage@inktank.com&gt;
</content>
</entry>
<entry>
<title>ceph: messenger: check return from get_authorizer</title>
<updated>2012-05-17T13:18:12Z</updated>
<author>
<name>Alex Elder</name>
</author>
<published>2012-05-16T20:16:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ed96af646011412c2bf1ffe860db170db355fae5'/>
<id>urn:sha1:ed96af646011412c2bf1ffe860db170db355fae5</id>
<content type='text'>
In prepare_connect_authorizer(), a connection's get_authorizer
method is called but ignores its return value.  This function can
return an error, so check for it and return it if that ever occurs.

Signed-off-by: Alex Elder &lt;elder@inktank.com&gt;
Reviewed-by: Sage Weil &lt;sage@inktank.com&gt;
</content>
</entry>
<entry>
<title>ceph: messenger: rework prepare_connect_authorizer()</title>
<updated>2012-05-17T13:18:12Z</updated>
<author>
<name>Alex Elder</name>
</author>
<published>2012-05-16T20:16:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b1c6b9803f5491e94041e6da96bc9dec3870e792'/>
<id>urn:sha1:b1c6b9803f5491e94041e6da96bc9dec3870e792</id>
<content type='text'>
Change prepare_connect_authorizer() so it returns without dropping
the connection mutex if the connection has no get_authorizer method.

Use the symbolic CEPH_AUTH_UNKNOWN instead of 0 when assigning
authorization protocols.

Signed-off-by: Alex Elder &lt;elder@inktank.com&gt;
Reviewed-by: Sage Weil &lt;sage@inktank.com&gt;
</content>
</entry>
</feed>
