]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commitdiff
libceph: wake up sync waiter when unregistering request
authorYan, Zheng <zyan@redhat.com>
Tue, 29 Nov 2016 11:38:40 +0000 (19:38 +0800)
committerYan, Zheng <zyan@redhat.com>
Tue, 29 Nov 2016 15:06:28 +0000 (23:06 +0800)
Current code does not wake up sync waiter if the request does not
want ondisk ack.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
net/ceph/osd_client.c

index e6ae15bc41b74dfc96e9d967139367b4ad3be952..54ffe8b0dfe161e9a8cd9f7ab37b8940552c5b8c 100644 (file)
@@ -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) {