]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
crimson/net: prevent racing in protocol to switch core and to call io-handler interfaces
authorYingxin Cheng <yingxin.cheng@intel.com>
Mon, 5 Jun 2023 02:40:23 +0000 (10:40 +0800)
committerMatan Breizman <mbreizma@redhat.com>
Wed, 11 Oct 2023 11:38:32 +0000 (11:38 +0000)
commit2244e3ace14e3031681c78be005c2458e4ca9942
tree4219252def6000d56cd4680b60701e2fa9e4f67e
parenta294340f21897c9ce5ff6e989bf49da33ba44cae
crimson/net: prevent racing in protocol to switch core and to call io-handler interfaces

Otherwise, calling io-handler interfaces may result in wrong core/order.

This needs to take special care to handle preemptive cases such as
closing and replacing.

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