]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
OSD: await_reserved_maps() prior to calling mark_down
authorGreg Farnum <greg@inktank.com>
Fri, 27 Jun 2014 21:59:23 +0000 (14:59 -0700)
committerGreg Farnum <greg@inktank.com>
Tue, 1 Jul 2014 04:51:10 +0000 (21:51 -0700)
commit8697d6a10ee822e8a032a559c78e211e2182799a
tree77228c7150290febf2015309a2c7ea62dc4dad5b
parentf3c92145ef1f8a8c6b5a911779de7f56e9ba32c3
OSD: await_reserved_maps() prior to calling mark_down

send_message_osd_cluster() et al are *trying* to protect their Connection
lookups (and not re-open zapped Connections) via map reservations, but
that only works if we know that we haven't already called mark_down() on
the entities they might be looking up. So we need to await_reserved_maps
before we do any mark_down calls.
Since the waiting might take some time (fast dispatch in progress), only do
so if we are actually going to mark somebody down.

Fixes: #8512
Signed-off-by: Greg Farnum <greg@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
src/osd/OSD.cc