Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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 <>
Reviewed-by: Sage Weil <>
  • Loading branch information...
commit c89ce05e0c5a01a256100ac6a6019f276bdd1ca6 1 parent a978fa2
@alexelder alexelder authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  net/ceph/osd_client.c
2  net/ceph/osd_client.c
@@ -1328,8 +1328,8 @@ static void kick_requests(struct ceph_osd_client *osdc, int force_resend)
dout("kicking lingering %p tid %llu osd%d\n", req, req->r_tid,
req->r_osd ? req->r_osd->o_osd : -1);
- __unregister_linger_request(osdc, req);
__register_request(osdc, req);
+ __unregister_linger_request(osdc, req);
Please sign in to comment.
Something went wrong with that request. Please try again.