]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: reset heartbeat in each MDSContext complete() 44551/head
authorXiubo Li <xiubli@redhat.com>
Thu, 9 Dec 2021 02:12:31 +0000 (10:12 +0800)
committerXiubo Li <xiubli@redhat.com>
Wed, 12 Jan 2022 01:57:37 +0000 (09:57 +0800)
commitc1bb068a657535172f5b33d9891ca9f1e1dd4b8b
tree8a7bb43925443690955a5d40f06a4b94ec23cb8d
parent24e18cd04eeb9a4d111bcb1511987420e029bd3c
mds: reset heartbeat in each MDSContext complete()

Before we switching the mds_lock to a fair mutex, the Finisher could
always successfully acquire the mds_lock if there has a number of
contextes finished. So it may take a long time to finish and will
delay kicking the heartbeat.

While even we have fix the mds_lock issue, it may still will happen
in case the complete() itself will take a long time to finish or
there has a number of contextes keep comming, which could make the
Finisher thread keep running.

Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit 9f7110501fd5989aecd575815c87c071fee76b93)
src/mds/MDSContext.cc