]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
crimson: create buffer from temporary_buffer with foreign-ptr by default
authorYingxin Cheng <yingxin.cheng@intel.com>
Fri, 23 Sep 2022 05:59:01 +0000 (13:59 +0800)
committerYingxin Cheng <yingxin.cheng@intel.com>
Fri, 23 Sep 2022 06:03:42 +0000 (14:03 +0800)
commit6f44a21e6d1132f3e795ce5802ef969de1bf970a
treeb813a24767422fcf3a5de0f537d294146a26b71d
parent1acdb44108683393f6b26995623feaaa79bbc517
crimson: create buffer from temporary_buffer with foreign-ptr by default

temporary_buffer is internally shareable with a thread-unsafe
ref-counter, we need to make sure it is released in the same core where
it is constructed.

Users that need the extra efficiency can swap to create_local as needed.

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
src/common/buffer_seastar.cc
src/crimson/net/Socket.cc
src/include/buffer.h