]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: reset heartbeat in each MDSContext complete() 44246/head
authorXiubo Li <xiubli@redhat.com>
Thu, 9 Dec 2021 02:12:31 +0000 (10:12 +0800)
committerYongseok Oh <yongseok.oh@linecorp.com>
Mon, 13 Dec 2021 14:58:03 +0000 (14:58 +0000)
commit9f7110501fd5989aecd575815c87c071fee76b93
treeba4e542b59798cfab2fe9c273b0b94b1cba847e2
parent0c021eb69b108aaac108c8d327bb45851a2584be
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>
src/mds/MDSContext.cc