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

msg/async: execute on core specified by core_id not its index #20659

Merged
merged 3 commits into from Mar 6, 2018

Conversation

tchaikov
Copy link
Contributor

@tchaikov tchaikov commented Mar 1, 2018

Reported-by: shangfufei shangfufei@inspur.com
Signed-off-by: Kefu Chai kchai@redhat.com

@tchaikov tchaikov force-pushed the wip-msg/async/dpdk/launch-on-coreid branch from dafe3e8 to 6ae143b Compare March 1, 2018 08:03
@tchaikov tchaikov requested a review from yuyuyu101 March 1, 2018 08:03
otherwise the dpdk plugin does not compile.

* remove workarounds for C++11. for example, std::void_t is available
  in C++17 now.
* drop seastar::shared_ptr<>, as it's not used in async/dpdk now.
* update the editor variable to match seastar's coding style

Signed-off-by: Kefu Chai <kchai@redhat.com>
Signed-off-by: Kefu Chai <kchai@redhat.com>
Reported-by: shangfufei <shangfufei@inspur.com>
Signed-off-by: Kefu Chai <kchai@redhat.com>
if (i-- == 0) {
break;
}
}
Copy link
Member

Choose a reason for hiding this comment

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

what's the meaning?

Choose a reason for hiding this comment

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

I think the idea of #20638 would be better

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@yuyuyu101 it's to get the core id from the its index. for example, if i is 0, the first non master core id is used.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@shangfufei, i'd be happy to learn the rationale behind your assertion.

@batrick batrick added the common label Mar 1, 2018
Copy link

@shangfufei shangfufei left a comment

Choose a reason for hiding this comment

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

Leave a comment

@tchaikov
Copy link
Contributor Author

tchaikov commented Mar 6, 2018

@yuyuyu101 ping?

@@ -1,4 +1,4 @@
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
Copy link
Member

Choose a reason for hiding this comment

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

just verify, is this update from seastar upstream file?

Copy link
Contributor Author

@tchaikov tchaikov Mar 6, 2018

Choose a reason for hiding this comment

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

no, it's not. see the commit message of d11a824 , none of the items listed in that commit message is from seastar upstream.

@tchaikov tchaikov merged commit 2e4f06e into ceph:master Mar 6, 2018
@tchaikov tchaikov deleted the wip-msg/async/dpdk/launch-on-coreid branch March 6, 2018 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
4 participants