]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: add flag to identify scrub IO
authorJaya Prakash <jayaprakash@ibm.com>
Mon, 8 Dec 2025 13:36:39 +0000 (13:36 +0000)
committerJaya Prakash <jayaprakash@ibm.com>
Tue, 9 Dec 2025 11:19:21 +0000 (11:19 +0000)
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 <jayaprakash@ibm.com>
src/os/bluestore/BlueStore.cc

index 28ee6a4f87a44a0a1639ab14f18889b0f38be1e7..97fc9dd68decd6994e46c0e9b4ad72a24252f773 100644 (file)
@@ -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;
   }