-
Notifications
You must be signed in to change notification settings - Fork 111
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
fix(nvmx): fixing async qpair connection bugs #1405
Conversation
0c5d00d
to
40c887e
Compare
bors try |
tryBuild failed: |
40c887e
to
a75f2d9
Compare
io-engine/src/bdev/nvmx/channel.rs
Outdated
|
||
fn remove_qpair(&mut self) -> Option<QPair> { | ||
if let Some(q) = &self.qpair { | ||
debug!("removing qpair {q:p}", q = q.as_ptr()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this be trace?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
io-engine/src/bdev/nvmx/qpair.rs
Outdated
.parse() | ||
.unwrap() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is to_string() enough ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, indeed. I just copied this piece of code over from the old implementation.
e9e78a5
to
46671c5
Compare
bors try |
tryMerge conflict. |
46671c5
to
6268470
Compare
Signed-off-by: Dmitry Savitskiy <[email protected]>
6268470
to
537ac2f
Compare
bors try |
This commit fixes a use-after-free in a situation when a qpair instance was dropped while an async connection was in progress. A component-level test for such situation is added. Signed-off-by: Dmitry Savitskiy <[email protected]>
537ac2f
to
3875ce9
Compare
tryBuild succeeded! The publicly hosted instance of bors-ng is deprecated and will go away soon. If you want to self-host your own instance, instructions are here. If you want to switch to GitHub's built-in merge queue, visit their help page. |
bors merge |
Build succeeded! The publicly hosted instance of bors-ng is deprecated and will go away soon. If you want to self-host your own instance, instructions are here. If you want to switch to GitHub's built-in merge queue, visit their help page. |
No description provided.