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/OpRequest: reduce overhead when disabling tracking #18470

Merged
merged 2 commits into from Oct 24, 2017

Conversation

yuyuyu101
Copy link
Member

No description provided.

Signed-off-by: Haomai Wang <haomai@xsky.com>
Signed-off-by: Haomai Wang <haomai@xsky.com>
@@ -158,10 +158,10 @@ OpTracker::~OpTracker() {

bool OpTracker::dump_historic_ops(Formatter *f, bool by_duration, set<string> filters)
{
RWLock::RLocker l(lock);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this would be nice to have if tracking_enabled were immutable. but we do expose the set_tracking() to the daemons. and they are calling it at run-time without protecting it with any extra locking.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or, we can make tracking_enabled an atomic?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

already in this pr

@liewegas liewegas merged commit a91064a into ceph:master Oct 24, 2017
@yuyuyu101 yuyuyu101 deleted the wip-tracker-lock branch October 24, 2017 06:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants