From: Jaya Prakash Date: Mon, 8 Dec 2025 13:36:39 +0000 (+0000) Subject: os/bluestore: add flag to identify scrub IO X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=401cffadaf69749a298ceccc8f6291a72cdb5b65;p=ceph.git os/bluestore: add flag to identify scrub IO This commit introduces a new operation flag `CEPH_OSD_OP_FLAG_SCRUB` to explicitly mark requests originating from scrub or deep-scrub workflows. The flag allows BlueStore to differentiate scrub IO from normal operations. Signed-off-by: Jaya Prakash --- diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index 28ee6a4f87a4..97fc9dd68dec 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -12934,7 +12934,7 @@ int BlueStore::_do_read( // for deep-scrub, we only read dirty cache and bypass clean cache in // order to read underlying block device in case there are silent disk errors. - if (op_flags & CEPH_OSD_OP_FLAG_BYPASS_CLEAN_CACHE) { + if (op_flags & CEPH_OSD_OP_FLAG_SCRUB) { dout(20) << __func__ << " will bypass cache and do direct read" << dendl; read_cache_policy = BufferSpace::BYPASS_CLEAN_CACHE; }