]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
msg/async/Protocol*: fix mark_down vs accept race 25823/head
authorSage Weil <sage@redhat.com>
Tue, 8 Jan 2019 13:13:13 +0000 (07:13 -0600)
committerSage Weil <sage@redhat.com>
Tue, 8 Jan 2019 13:13:23 +0000 (07:13 -0600)
commita1613e60a0a6a78bd9ccd09b410b47f5123d844b
treef30f9b3a50bf56d5610973aa4befe13e59787d42
parent4331a92ab70f878fac574bd60a1ce3bc310680f2
msg/async/Protocol*: fix mark_down vs accept race

If we mark_down the connection while we have the lock dropped the state
maybe CLOSED when we retake it.  Bail out if that happens instead of
continuing to process the connection and eventually running into an
assertion on can_write.

Fixes: http://tracker.ceph.com/issues/36497
Signed-off-by: Sage Weil <sage@redhat.com>
src/msg/async/ProtocolV1.cc
src/msg/async/ProtocolV2.cc