]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
include: add flag to identify scrub IO 66552/head
authorJaya Prakash <jayaprakash@ibm.com>
Mon, 8 Dec 2025 13:37:13 +0000 (13:37 +0000)
committerJaya Prakash <jayaprakash@ibm.com>
Tue, 9 Dec 2025 11:29:48 +0000 (11:29 +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/include/rados.h

index 65092d42328b2c51538369c62626abacea44ddf4..e471833a290a0ce8513b9d330709c9e412550f1f 100644 (file)
@@ -496,7 +496,12 @@ enum {
        CEPH_OSD_OP_FLAG_FADVISE_DONTNEED   = 0x20,/* data will not be accessed in the near future */
        CEPH_OSD_OP_FLAG_FADVISE_NOCACHE   = 0x40, /* data will be accessed only once by this client */
        CEPH_OSD_OP_FLAG_WITH_REFERENCE   = 0x80, /* need reference couting */
-       CEPH_OSD_OP_FLAG_BYPASS_CLEAN_CACHE = 0x100, /* bypass ObjectStore cache, mainly for deep-scrub */
+       CEPH_OSD_OP_FLAG_SCRUB = 0x100, /* hint ObjectStore for deep-scrub ops
+                                                                        * Marks op as scrub or deep-scrub operations.
+                                                                        * This flag allows ObjectStore to identify scrub-originated ops
+                                                                        * and handle them separately from normal ops,
+                                                                        * apply scrub-specific behavior (e.g. bypassing clean cache)
+                                                                        */
 };
 
 #define EOLDSNAPC    85  /* ORDERSNAP flag set; writer has old snapc*/