libceph: register request before unregister linger
authorAlex Elder <elder@inktank.com>
Thu, 6 Dec 2012 13:22:04 +0000 (07:22 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Jan 2013 16:51:19 +0000 (08:51 -0800)
commit0d3b9fff8bc11bc7d745c6b34c098b1c548fec65
treeebbfc836e334670d9b538d4bf92b4fad9983c17b
parent1d2522a000b6f6a0c836d586bbb39bacaae9b390
libceph: register request before unregister linger

In kick_requests(), we need to register the request before we
unregister the linger request.  Otherwise the unregister will
reset the request's osd pointer to NULL.

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
(cherry picked from commit c89ce05e0c5a01a256100ac6a6019f276bdd1ca6)
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ceph/osd_client.c