From: Sage Weil Date: Fri, 19 Jan 2018 17:29:19 +0000 (-0600) Subject: osd: allow limited scrub preemption X-Git-Tag: v12.2.6~98^2~24 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ba6e67c846c22e10a859fe62c49b2e9896b3a5f8;p=ceph.git osd: allow limited scrub preemption If we receive a write within the scrub range, abort the scrub chunk and shrink the chunk size. If we do this too many times do not preempt and allow the scrub to complete (to avoid scrub starvation due to client io). Signed-off-by: Sage Weil (cherry picked from commit 6dd42392c0f00011059ffa5de74cace7d1e911bd) Conflicts: src/messages/MOSDRepScrub.h src/messages/MOSDRepScrubMap.h src/osd/PrimaryLogPG.cc src/osd/PrimaryLogPG.h - encode vs ::encode etc - dragged in waiting for scrub events from 508ea640e3b - ignore change in chunked manifest code (which dne in luminous) --- diff --git a/src/common/options.cc b/src/common/options.cc index 7f3bff845231..3f7bc12367a9 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -2551,6 +2551,10 @@ std::vector