]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
msgr: clear_pipe inside pipe_lock on mark_down_all
authorSage Weil <sage@inktank.com>
Mon, 17 Jun 2013 19:47:11 +0000 (12:47 -0700)
committerSage Weil <sage@inktank.com>
Sun, 23 Jun 2013 22:10:24 +0000 (15:10 -0700)
commit5fc1dabfb3b2cbffdee3214d24d7769d6e440e45
treeefc6a90196a3b9fb8aa2bb5a2302be811c0c38d3
parentb89d7420e3501247d6ed282d2253c95c758526b1
msgr: clear_pipe inside pipe_lock on mark_down_all

Observed a segfault in rebind -> mark_down_all -> clear_pipe -> put that
may have been due to a racing thread clearing the connection_state pointer.
Do the clear_pipe() call under the protection of pipe_lock, as we do in
all other contexts.

Signed-off-by: Sage Weil <sage@inktank.com>
src/msg/SimpleMessenger.cc