]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ReplicatedPG::C_ProxyRead: fix dropped lock 3587/head
authorSamuel Just <sjust@redhat.com>
Fri, 30 Jan 2015 20:54:47 +0000 (12:54 -0800)
committerSamuel Just <sjust@redhat.com>
Fri, 30 Jan 2015 20:54:47 +0000 (12:54 -0800)
Fixes: 10633
Signed-off-by: Samuel Just <sjust@redhat.com>
src/osd/ReplicatedPG.cc

index 30638cc7608d9d21f3bf73f84b389a83e4463015..34cffc43196f37b94098f1d12cf48d0b53f3d9cc 100644 (file)
@@ -1951,8 +1951,10 @@ struct C_ProxyRead : public Context {
     if (prdop->canceled)
       return;
     pg->lock();
-    if (prdop->canceled)
+    if (prdop->canceled) {
+      pg->unlock();
       return;
+    }
     if (last_peering_reset == pg->get_last_peering_reset()) {
       pg->finish_proxy_read(oid, tid, r);
     }