]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd/migration/HttpClient: socket isn't shut down on some state transitions 61079/head
authorIlya Dryomov <idryomov@gmail.com>
Thu, 12 Dec 2024 20:32:39 +0000 (21:32 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Fri, 13 Dec 2024 12:44:45 +0000 (13:44 +0100)
commit88557dff2fe14c7df96992fbb0a5208979c20bf1
tree432f4cc13bddd49398ef59aa7722f02eea2237ad
parent1046d610e3d6852258e6c4bf0355d0d13fb197b4
librbd/migration/HttpClient: socket isn't shut down on some state transitions

If shut_down() gets delayed until a) the state transition from
STATE_RESET_CONNECTING completes and the reconnect is unsuccessful or
b) the state transition from STATE_RESET_DISCONNECTING completes (i.e.
next_state is STATE_UNINITIALIZED or STATE_RESET_CONNECTING), the
socket needs to be shut down before m_on_shutdown is invoked.  The line
of thought here is the same as for the corresponding state transitions
that don't involve STATE_SHUTTING_DOWN.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
src/librbd/migration/HttpClient.cc