]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
msg: add priority to dispatcher invocation order
authorPatrick Donnelly <pdonnell@redhat.com>
Tue, 14 May 2024 18:15:21 +0000 (14:15 -0400)
committerPatrick Donnelly <pdonnell@redhat.com>
Thu, 23 May 2024 19:39:02 +0000 (15:39 -0400)
commit90a77bcebec1b351c9ae5a36ce1e34caf89caa7b
tree860e7fcd07ea6a3f6cdcd3af0eff09cf3d882677
parent8265357e717ede72d27c2f4f00bb4f7364ea8566
msg: add priority to dispatcher invocation order

So we can ensure that e.g. MDSRank::ms_dispatch is lowest priority so that we
do not acquire the mds_lock when looking at beacons.

This change maintains the current behavior when the priority is unset: the use
of std::stable_sort will ensure that the add_dispatcher_head and
add_dispatcher_tail calls will preserve order when dispatcher priorities are
equal.

Fixes: 7fc04be9332704946ba6f0e95cfcd1afc34fc0fe
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit b463d93b08f392ebd636c24bf5f0fa4249600256)
src/msg/Dispatcher.h
src/msg/Messenger.h