]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osdc/Journaler:: For read operation add fadvise-dontneed flag.
authorJianpeng Ma <jianpeng.ma@intel.com>
Fri, 28 Aug 2015 01:48:58 +0000 (09:48 +0800)
committerJianpeng Ma <jianpeng.ma@intel.com>
Fri, 11 Sep 2015 05:07:33 +0000 (13:07 +0800)
Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
src/osdc/Journaler.cc

index 2229a9e08daca05a90d1b85deb637e5e34c332e5..d2d648f08d21a985ad0d0f0355b13609020e4f99 100644 (file)
@@ -940,7 +940,7 @@ void Journaler::_issue_read(uint64_t len)
     if (l > len)
       l = len;
     C_Read *c = new C_Read(this, requested_pos);
-    filer.read(ino, &layout, CEPH_NOSNAP, requested_pos, l, &c->bl, 0, wrap_finisher(c));
+    filer.read(ino, &layout, CEPH_NOSNAP, requested_pos, l, &c->bl, 0, wrap_finisher(c), CEPH_OSD_OP_FLAG_FADVISE_DONTNEED);
     requested_pos += l;
     len -= l;
   }