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>
// 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;
}