]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crimson/os: pin the last cpu core for the alien worker threads
authorKefu Chai <kchai@redhat.com>
Thu, 2 Jul 2020 11:27:40 +0000 (19:27 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 2 Jul 2020 11:38:16 +0000 (19:38 +0800)
commit2ba13668a6fc6d9fdc7109d4b53cc6b1dc72ecfa
tree2f39d4f15c830691d910128bc902c9360ff06a6d
parent7948e2de78a4a533cddc1dc505d1def5d42e8aa6
crimson/os: pin the last cpu core for the alien worker threads

before this change, we assume that we have at least current_shared + 10
cores. but that's not always true. so in this change, the last core
is used for performing the alien tasks scheduled by reactor.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/os/alienstore/alien_store.cc
src/crimson/os/alienstore/thread_pool.cc
src/crimson/os/alienstore/thread_pool.h