From: Sage Weil Date: Fri, 5 Jan 2018 14:35:34 +0000 (-0600) Subject: osd: allow limited scrub preemption X-Git-Tag: wip-pdonnell-testing-20180317.202121~537^2~4 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=6dd42392c0f00011059ffa5de74cace7d1e911bd;p=ceph-ci.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 --- diff --git a/src/common/options.cc b/src/common/options.cc index 7f9222d35e7..fac7b6c52fd 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -2681,6 +2681,10 @@ std::vector