]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
async/dpdk: do not use worker id when creating worker
authorKefu Chai <kchai@redhat.com>
Wed, 24 Feb 2021 04:34:26 +0000 (12:34 +0800)
committeryite.gu <yitegu0@gmail.com>
Sun, 4 Feb 2024 03:21:49 +0000 (11:21 +0800)
commit6376b8014cdbd0eaeabb1f9fa18276f76b37e38c
tree68d1eff040d436c58b71a10f9f08773c924c07d5
parentf897a8b26a8ae26836871bf2d35cda02531d702a
async/dpdk: do not use worker id when creating worker

so we can drop the `i` parameter in a later change.

also restructure DPDKStack::spawn_worker() to capture variables by value
instead of by reference, we cannot assume that the variables allocated on
stack are still available when the function is scheduled on another
stack and core.

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit db8d9f6641ea7280e46cd985f8a3bb17fe10808e)
src/msg/async/dpdk/DPDKStack.cc
src/msg/async/dpdk/DPDKStack.h