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

WorkQueue.cc: Limit the lock granularity #3136

Closed
wants to merge 1 commit into from
Closed

Conversation

XinzeChi
Copy link
Contributor

Signed-off-by: Xinze Chi xmdxcxz@gmail.com

Signed-off-by: Xinze Chi <xmdxcxz@gmail.com>
@liewegas
Copy link
Member

the purpose of the _process_finish hook is that it happens under the lock. if there is a particular workqueue user that doesn't need that, it should move it's code from _process_finish to _process. I'm guessing your concerned with the FileStore::_finish_op()?

@XinzeChi
Copy link
Contributor Author

Yes, I agree with you that move FileStore::_finish_op to FileStore::_do_op is better.
I will do.

@liewegas
Copy link
Member

I believe the code in finish_op() is dependent on being run under the lock. If anything is moved into do_op it needs to be done very carefully.

@liewegas liewegas closed this Dec 10, 2014
@XinzeChi XinzeChi deleted the wip-4 branch November 26, 2015 03:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants