]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
journal: Add iohint flags for journal write ops.
authorJianpeng Ma <jianpeng.ma@intel.com>
Mon, 14 Dec 2015 05:32:02 +0000 (13:32 +0800)
committerJianpeng Ma <jianpeng.ma@intel.com>
Mon, 14 Dec 2015 05:32:02 +0000 (13:32 +0800)
Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
src/journal/ObjectRecorder.cc

index 7c0143f025e53977aeaedd897839b25964c21d25..dc06a65380f1c9be886e5fa7388cf3c465beec43 100644 (file)
@@ -286,6 +286,7 @@ void ObjectRecorder::send_appends(AppendBuffers *append_buffers) {
                      << dendl;
     it->first->set_flush_in_progress();
     op.append(it->second);
+    op.set_op_flags2(CEPH_OSD_OP_FLAG_FADVISE_DONTNEED);
     m_size += it->second.length();
   }
   m_in_flight_appends[append_tid].swap(*append_buffers);