]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Revert "rbd: ObjectCacher reads can hang when reading sparse files"
authorSage Weil <sage@redhat.com>
Fri, 24 Oct 2014 18:06:08 +0000 (11:06 -0700)
committerSage Weil <sage@redhat.com>
Fri, 24 Oct 2014 18:06:08 +0000 (11:06 -0700)
This reverts commit cdb7675a21c9107e3596c90c2b1598def3c6899f.

Signed-off-by: Sage Weil <sage@redhat.com>
src/osdc/ObjectCacher.cc

index 93cede5b7b802daf606c3a35f3a0e136fb77a883..90bf03fd09b4530446efac7b689f612fcd63424d 100644 (file)
@@ -709,9 +709,6 @@ void ObjectCacher::bh_read_finish(int64_t poolid, sobject_t oid, ceph_tid_t tid,
       }
     }
 
-    ls.splice(ls.end(), waitfor_read);
-    waitfor_read.clear();
-
     // apply to bh's!
     loff_t opos = start;
     while (true) {
@@ -766,6 +763,9 @@ void ObjectCacher::bh_read_finish(int64_t poolid, sobject_t oid, ceph_tid_t tid,
       loff_t oldpos = opos;
       opos = bh->end();
 
+      ls.splice(ls.end(), waitfor_read);
+      waitfor_read.clear();
+
       if (r == -ENOENT) {
        if (trust_enoent) {
          ldout(cct, 10) << "bh_read_finish removing " << *bh << dendl;