]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: set dispatcher order 57683/head
authorPatrick Donnelly <pdonnell@redhat.com>
Tue, 14 May 2024 19:28:56 +0000 (15:28 -0400)
committerPatrick Donnelly <pdonnell@redhat.com>
Thu, 23 May 2024 19:39:02 +0000 (15:39 -0400)
commit710dcbdc6e0468e139fdb40de9f1c433377b3cfa
tree508407608aabec772c1101452e02cb7ee8862690
parentf9088bb2cd6d09dc2308f2c491ade55310db200d
mds: set dispatcher order

This tries to preserve existing order but uses priorities to make it explicit
and robust to future dispatchers being added. Except:

- The beacon and metrics dispatcher have the highest priorities.  This is to
  ensure we process these messages before trying to acquire any expensive locks
  (like mds_lock).

- The monc dispatcher also has a relatively high priority for the same reasons.
  This change affects other daemons which may have ordered a dispatcher ahead
  of the monc but I cannot think of a legitimate reason to nor do I see an
  instance of it.

Fixes: 7fc04be9332704946ba6f0e95cfcd1afc34fc0fe
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit 3291f3976459fe6c05b5f54e200bd91cf3b78d8a)
src/mds/MDSDaemon.cc
src/mds/MDSRank.cc
src/mon/MonClient.cc