From: Yan, Zheng Date: Tue, 29 Nov 2016 11:38:40 +0000 (+0800) Subject: libceph: wake up sync waiter when unregistering request X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b818a11fec966dda50c31e51168138829fe1dccf;p=ceph-client.git libceph: wake up sync waiter when unregistering request Current code does not wake up sync waiter if the request does not want ondisk ack. Signed-off-by: Yan, Zheng --- diff --git a/net/ceph/osd_client.c b/net/ceph/osd_client.c index e6ae15bc41b7..54ffe8b0dfe1 100644 --- a/net/ceph/osd_client.c +++ b/net/ceph/osd_client.c @@ -2934,8 +2934,7 @@ static void handle_reply(struct ceph_osd *osd, struct ceph_msg *msg) dout("req %p tid %llu cb\n", req, req->r_tid); __complete_request(req); } - if (m.flags & CEPH_OSD_FLAG_ONDISK) - complete_all(&req->r_safe_completion); + complete_all(&req->r_safe_completion); ceph_osdc_put_request(req); } else { if (req->r_unsafe_callback) {