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: more cleanups #10548

Merged
merged 4 commits into from Aug 8, 2016
Merged

osd: more cleanups #10548

merged 4 commits into from Aug 8, 2016

Conversation

xiexingguo
Copy link
Member

No description provided.

The agent_timer.shutdown() method will call cancel_all_events()
within in a more safe and elegant way, so we don't have to
call it explicitly here.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
To make sure there is no underflow and the scrub logic
works fine.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
According to Linux Man pages:

  ECANCELED       Operation canceled (POSIX.1)

So ECANCELED is the preferred one.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
The destructor of OSD will delete class_handler arbitrarily
and there are cases we'll fail to start an osd before we
load the class_handler correctly.

So it is safe to initialize class_handler to NULL as to
avoid access violation.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
@xiexingguo xiexingguo deleted the xxg-wip-osd-2016-08-02 branch August 9, 2016 00:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants