]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: use fast dispatch to handle MDSBeacon 23527/head
authorYan, Zheng <zyan@redhat.com>
Fri, 10 Aug 2018 09:34:01 +0000 (17:34 +0800)
committerYan, Zheng <zyan@redhat.com>
Fri, 10 Aug 2018 23:33:13 +0000 (07:33 +0800)
commit7fc04be9332704946ba6f0e95cfcd1afc34fc0fe
tree33eca66857ac9a3245c5edd606a263652f15a0a5
parentbfd0cde8ff1e440d2b3a2ec84a201de0fd40f199
mds: use fast dispatch to handle MDSBeacon

Current mds handles MDSBeacon messages through MDSRank::ms_dispatch().
MDSRank::ms_dispatch() locks mds_lock at the very beginning. This means
that long running task (such as processing finished contexts) can delay
MMDSBeacon. Using fast dispatch for MDSBeacon can avoid this issue.

Fixes: http://tracker.ceph.com/issues/23519
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
src/mds/Beacon.cc
src/mds/Beacon.h