]> git.apps.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>
Wed, 24 Jul 2013 23:20:35 +0000 (16:20 -0700)
commit8aafe131acadc22cb069f3d98bba6922ab09c749
treee862ef7f9a665a39ec6af16f45c99cbb877a7424
parent2f7979d1262e9d4899be76963a1620db46b334e8
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>
(cherry picked from commit 5fc1dabfb3b2cbffdee3214d24d7769d6e440e45)

Conflicts:

src/msg/SimpleMessenger.cc
src/msg/SimpleMessenger.cc