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

nbd: unmap wait process exit #228

Merged
merged 1 commit into from
Jan 20, 2021

Conversation

wu-hanqing
Copy link
Contributor

What problem does this PR solve?

Issue Number: close #xxx

Problem Summary:

What is changed and how it works?

What's Changed:

How it Works:

Side effects(Breaking backward compatibility? Performance regression?):

Check List

  • Relevant documentation/comments is changed or added
  • I acknowledge that all my contributions will be made under the project's license

return 0;
}

// TODO(wuhanqing): make this to NBDConfig
Copy link
Member

Choose a reason for hiding this comment

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

这个TODO处理掉吧,没必要留着,考虑下需不需要加到配置里去,如果不需要,就单独一个常量定义就可以了,如果需要就增加到配置里吧

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

return ret;
}

ret = WaitForTerminate(devpath, devpid, 5000);
Copy link
Member

Choose a reason for hiding this comment

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

这个5000也考虑下是否需要加到配置中,或者定义成常量,不要用裸的数字。

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@xu-chaojie xu-chaojie merged commit 5f9b5f6 into opencurve:master Jan 20, 2021
@wu-hanqing wu-hanqing deleted the fix/nbd-wait-exit branch January 28, 2021 02:20
ilixiaocui pushed a commit to ilixiaocui/curve that referenced this pull request Feb 6, 2023
CommunityBridge selected SMI project and mentee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants