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
os/bluestore: free the spdk qpair resource correctly in destructor of SharedDriverQueueData #20929
Conversation
src/os/bluestore/NVMEDevice.cc
Outdated
spdk_nvme_ctrlr_free_io_qpair(qpair); | ||
bdev->queue_number--; | ||
qpair = NULL; |
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.
this line is not necessary.
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.
@JianyuLi this is not addressed.
could you prefix the title of your commit message with the subcomponent your are changing ? see https://github.com/ceph/ceph/blob/master/SubmittingPatches.rst#3-describe-your-changes |
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.
modulo the nits, lgtm
retest this please |
… SharedDriverQueueData Signed-off-by: Jianyu Li <joannyli@foxmail.com>
@JianyuLi ping? |
185f17c
to
45b6dc9
Compare
update the commit message as requested, please have a look. |
@JianyuLi please fold these two commits into a single one. |
Done, remove the unnecessary qpair reset. |
04c6866
to
291de35
Compare
@tchaikov ,merged the two commit. |
Currently ‘if (!qpair)’ condition wouldn't free spdk qpair resource in destructor of SharedDriverQueueData
Signed-off-by: Jianyu Li joannyli@foxmail.com