]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: set dispatcher order 57469/head
authorPatrick Donnelly <pdonnell@redhat.com>
Tue, 14 May 2024 19:28:56 +0000 (15:28 -0400)
committerPatrick Donnelly <pdonnell@redhat.com>
Thu, 16 May 2024 01:16:30 +0000 (21:16 -0400)
commit3291f3976459fe6c05b5f54e200bd91cf3b78d8a
tree17b0e60428b6466a6b3458e39ed247f778bb1ab6
parent7fc2a65326eeeef4938a9f73be05b6f66358405f
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>
src/mds/MDSDaemon.cc
src/mds/MDSRank.cc
src/mon/MonClient.cc