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

os/bluestore: free the spdk qpair resource correctly in destructor of SharedDriverQueueData #20929

Merged
merged 1 commit into from Apr 16, 2018

Conversation

JianyuLi
Copy link
Contributor

Currently ‘if (!qpair)’ condition wouldn't free spdk qpair resource in destructor of SharedDriverQueueData

Signed-off-by: Jianyu Li joannyli@foxmail.com

spdk_nvme_ctrlr_free_io_qpair(qpair);
bdev->queue_number--;
qpair = NULL;
Copy link
Contributor

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.

Copy link
Contributor

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.

@tchaikov
Copy link
Contributor

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

Copy link
Contributor

@tchaikov tchaikov left a 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

@tchaikov
Copy link
Contributor

retest this please

… SharedDriverQueueData

Signed-off-by: Jianyu Li <joannyli@foxmail.com>
@tchaikov
Copy link
Contributor

@JianyuLi ping?

@JianyuLi
Copy link
Contributor Author

update the commit message as requested, please have a look.

@tchaikov
Copy link
Contributor

@JianyuLi please fold these two commits into a single one.

@JianyuLi
Copy link
Contributor Author

Done, remove the unnecessary qpair reset.

@JianyuLi
Copy link
Contributor Author

@tchaikov ,merged the two commit.

@tchaikov tchaikov merged commit d67b4ef into ceph:master Apr 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants