]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: fix require_same_peer_instance from fast_dispatch
authorSage Weil <sage@redhat.com>
Wed, 13 Aug 2014 15:30:25 +0000 (08:30 -0700)
committerSage Weil <sage@redhat.com>
Wed, 13 Aug 2014 15:30:25 +0000 (08:30 -0700)
commitdf945a900a90701fd024ff7b537be509937213b2
tree880a6b607faf8f067f58ace643805f6e7ebf304b
parent3d7e2b357acac9de239be0ea14da2e2b3e462164
osd: fix require_same_peer_instance from fast_dispatch

The mark-down of old peers needs to take the session_dispatch_lock in order
to safely clear the Session ref cycle.  However, for fast dispatch callers,
that lock is already held.  Pass a flag down from the callers indicating
whether we need to take the additional lock.

Fixes: #9096
Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/OSD.cc
src/osd/OSD.h