]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
crimson/net: implement logic to move a io-handler to a new sid
authorYingxin Cheng <yingxin.cheng@intel.com>
Mon, 5 Jun 2023 02:22:29 +0000 (10:22 +0800)
committerMatan Breizman <mbreizma@redhat.com>
Wed, 11 Oct 2023 11:38:32 +0000 (11:38 +0000)
commita294340f21897c9ce5ff6e989bf49da33ba44cae
tree288f80c2a284683ea68b3630da1c9d82ba251891
parentf6565a62fb843befcec0069a4e5544779db1eadf
crimson/net: implement logic to move a io-handler to a new sid

Note that it is inevitable that the user can mark down the connection
while the protocol is trying to move the connection to another core.

In that case, the implementation should tolerate the racing, which
finally needs to cleanup resources correctly and dispatch reasonable
events.

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
(cherry picked from commit b10f0bd3ccc919bfbe4d063bebabe651faf60812)
src/crimson/net/FrameAssemblerV2.cc
src/crimson/net/FrameAssemblerV2.h
src/crimson/net/ProtocolV2.cc
src/crimson/net/ProtocolV2.h
src/crimson/net/io_handler.cc
src/crimson/net/io_handler.h