Skip to content

Commit

Permalink
Merge pull request #7010 from majianpeng/skip-promote-for-writefull
Browse files Browse the repository at this point in the history
osd: skip promote for writefull w/ FADVISE_DONTNEED/NOCACHE

Reviewed-by: Sage Weil <sage@redhat.com>
  • Loading branch information
liewegas committed Jan 6, 2016
2 parents 5a1d9f6 + b5b1736 commit 42369db
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/osd/OSD.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8820,6 +8820,7 @@ int OSD::init_op_flags(OpRequestRef& op)
case CEPH_OSD_OP_READ:
case CEPH_OSD_OP_SYNC_READ:
case CEPH_OSD_OP_SPARSE_READ:
case CEPH_OSD_OP_WRITEFULL:
if (m->ops.size() == 1 &&
(iter->op.flags & CEPH_OSD_OP_FLAG_FADVISE_NOCACHE ||
iter->op.flags & CEPH_OSD_OP_FLAG_FADVISE_DONTNEED)) {
Expand Down

0 comments on commit 42369db

Please sign in to comment.