]> 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, 16 May 2024 01:16:29 +0000 (21:16 -0400)
commitb463d93b08f392ebd636c24bf5f0fa4249600256
tree746fd8406c8012da77d954643f258c8e2b8787e3
parent1b93fd5f8d52caa056b55f9c330296909f39486c
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>
src/msg/Dispatcher.h
src/msg/Messenger.h