New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
osd: change op delayed state to 'waiting for scrub' #19295
Conversation
@liewegas need a review, please |
src/osd/PrimaryLogPG.h
Outdated
while (op_iter != p.second.end()) { | ||
(*op_iter)->mark_delayed("waiting for scrub"); | ||
++op_iter; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about
for (auto op : p.second) { op->mark_delayed("waiting for scrub"); }
?
otherwise, lgtm!
@liewegas code changed, thank you! |
Jenkins retest this please |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
src/osd/PrimaryLogPG.h 100644 → 100755
@kungf could you revert this chmod change?
src/osd/PrimaryLogPG.h
Outdated
@@ -840,6 +840,10 @@ class PrimaryLogPG : public PG, public PGBackend::Listener { | |||
// 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) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
might want to use auto&
to avoid the intrusive_ptr_add_ref
and intrusive_ptr_release
calls.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok,that's right
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>
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