Skip to content
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: avoid osd_op_thread suicide because osd_scrub_sleep #7009

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/osd/PG.cc
Expand Up @@ -3851,7 +3851,9 @@ void PG::scrub(epoch_t queued, ThreadPool::TPHandle &handle)
unlock();
utime_t t;
t.set_from_double(g_conf->osd_scrub_sleep);
handle.suspend_tp_timeout();
t.sleep();
handle.reset_tp_timeout();
lock();
dout(20) << __func__ << " slept for " << t << dendl;
}
Expand Down