]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common/Thread: configure Seastar's memory allocator.
authorRadoslaw Zarzynski <rzarzyns@redhat.com>
Tue, 16 Jun 2020 13:25:10 +0000 (15:25 +0200)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Tue, 23 Jun 2020 08:16:31 +0000 (10:16 +0200)
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
src/common/Thread.cc

index 45451040c4adfa31112dd00d1b88c324a0ca16c9..ccee3bc84d90c20d77fc2e3fa8bc8b639c83b5e3 100644 (file)
 #include <sys/syscall.h>   /* For SYS_xxx definitions */
 #endif
 
+#ifdef WITH_SEASTAR
+#include "crimson/os/alienstore/alien_store.h"
+#endif
+
 #include "common/Thread.h"
 #include "common/code_environment.h"
 #include "common/debug.h"
@@ -81,6 +85,9 @@ void *Thread::entry_wrapper()
     _set_affinity(cpuid);
 
   ceph_pthread_setname(pthread_self(), thread_name);
+#ifdef WITH_SEASTAR
+  crimson::os::AlienStore::configure_thread_memory();
+#endif
   return entry();
 }