]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
Bluestore, NVMeDevice: fix the core id for rte_remote_launch 13896/head
authoroptimistyzy <optimistyzy@gmail.com>
Thu, 9 Mar 2017 06:30:33 +0000 (14:30 +0800)
committeroptimistyzy <optimistyzy@gmail.com>
Thu, 9 Mar 2017 06:37:32 +0000 (14:37 +0800)
commit9d1b108c551a2374450f08e201f47a3429f53d98
tree17107f57bf4bdc56e86a9594d3e547a0389de30b
parenta68106934c5ed28d0195d6104bce5981aca9aa9d
Bluestore, NVMeDevice: fix the core id for rte_remote_launch

Previously, we use the id. The id value will be 1 always since
we will only support one NVMe device per osd. Also we have
coremask conf , the default is 3, and we will use core 1.
It is correct. However if we specify another core mask, e.g.,
0xC, still passing 1 to start the dpdk_thread is wrong. we
need to pass core id = 4.

Since for each shareddata, we only use one cpu core, so
just passing rte_get_next_lcore(-1, 0, 0), which selects
the first slave core.

Signed-off-by: optimistyzy <optimistyzy@gmail.com>
src/os/bluestore/NVMEDevice.cc