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: release related sources when scrub is interrupted #6744

Merged
merged 1 commit into from Dec 23, 2015

Conversation

majianpeng
Copy link
Member

Now scrub is chunky scrub. For a pg, it maybe need more chunky_scrub.
If interrupt scrub, it should free the related sources.

Signed-off-by: Jianpeng Ma jianpeng.ma@intel.com

@majianpeng
Copy link
Member Author

@tchaikov . I review again code. When delete pg, the code path is: ReplicatedPG::on_removal-->on_shutdown. In func ReplicatedPG::on_shutdown, it forget call scrub_clear_state which decrease active scrub number. So only add scrub_clear_state in on_shutdown can resolve this.

@tchaikov
Copy link
Contributor

lgtm.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
liewegas added a commit that referenced this pull request Dec 23, 2015
osd: release related sources when scrub is interrupted

Reviewed-by: Kefu Chai <kchai@redhat.com>
@liewegas liewegas merged commit 0b67526 into ceph:master Dec 23, 2015
@ghost ghost changed the title osd/PG: release related sources when interrupt scrub. osd: release related sources when scrub is interrupted Feb 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants