when release rwlock, the ops waiting for rwlock are thansfered to
waiting_for_scrub if the object was blocked by scrub, the delayed
state should be changed at the same time.
Signed-off-by: kungf <yang.wang@easystack.cn>
// requeue at front of scrub blocking queue if we are blocked by scrub
for (auto &&p: to_req) {
if (scrubber.write_blocked_by_scrub(p.first.get_head())) {
+ for (auto& op : p.second) {
+ op->mark_delayed("waiting for scrub");
+ }
+
waiting_for_scrub.splice(
waiting_for_scrub.begin(),
p.second,