]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
crimson/net: set exit_open atomically with write_dispatching
authorYingxin Cheng <yingxin.cheng@intel.com>
Mon, 16 Sep 2019 03:54:39 +0000 (11:54 +0800)
committerYingxin Cheng <yingxin.cheng@intel.com>
Wed, 18 Sep 2019 04:32:31 +0000 (12:32 +0800)
commit76b902b3ff0f63705d09eb63a9da5606f91cdfff
tree6238da8443d79dc05d9a40e0675885f7202fce1e
parent33e4ad49f3e0a8423398c85c489b54425fc0ce90
crimson/net: set exit_open atomically with write_dispatching

exit_open should be set atomically with state checks and
write_dispatching changes, or there would be chances to be blocked
forever by exit_open.

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
src/crimson/net/Protocol.cc
src/crimson/net/Protocol.h