libceph: osd_client: don't drop reply reference too early
authorAlex Elder <elder@inktank.com>
Mon, 4 Jun 2012 19:43:32 +0000 (14:43 -0500)
committerAlex Elder <elder@dreamhost.com>
Wed, 6 Jun 2012 14:23:54 +0000 (09:23 -0500)
commitab8cb34a4b2f60281a4b18b1f1ad23bc2313d91b
treeb7e50d3d9e0e932aa07cd31d611e304b3173423f
parent895cfcc810e53d7d36639969c71efb9087221167
libceph: osd_client: don't drop reply reference too early

In ceph_osdc_release_request(), a reference to the r_reply message
is dropped.  But just after that, that same message is revoked if it
was in use to receive an incoming reply.  Reorder these so we are
sure we hold a reference until we're actually done with the message.

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
net/ceph/osd_client.c