]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: use fast dispatch to handle MDSBeacon 23556/head
authorYan, Zheng <zyan@redhat.com>
Fri, 10 Aug 2018 09:34:01 +0000 (17:34 +0800)
committerPatrick Donnelly <pdonnell@redhat.com>
Mon, 13 Aug 2018 17:44:51 +0000 (10:44 -0700)
commit4a6df5f8bdca3988b4a1b5bb86b8a87227f49cdf
treefd9c1bda6b28153885cdafd1a9dad545fc56177f
parentb2f6d526cde551f1dce355d7516df449f78b18c1
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>
(cherry picked from commit 7fc04be9332704946ba6f0e95cfcd1afc34fc0fe)
src/mds/Beacon.cc
src/mds/Beacon.h