]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: set dispatcher order 57682/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:38:36 +0000 (15:38 -0400)
commit598780344c99d8968535db6e91e29cd29d1d5581
treecb5e61e300a27d87f92698f27560dfb20492ef45
parentcc0303a946d40c4fcb0329751e1bcf2001fe5d8f
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