]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: try to flush the mdlog when requesting the rdlock 41849/head
authorXiubo Li <xiubli@redhat.com>
Tue, 15 Jun 2021 03:25:31 +0000 (11:25 +0800)
committerXiubo Li <xiubli@redhat.com>
Tue, 15 Jun 2021 08:37:22 +0000 (16:37 +0800)
commit63f7a165ec6bbf9cb1bded29f8bc5c017c01c768
tree877f4799f79f5f00cf7a520e3d41cf31f12ecd8c
parentcf8814d3165a0b29e3695ccaf09f529d15737bef
mds: try to flush the mdlog when requesting the rdlock

After client requests' early_reply() the mdlog won't be flushed
immediately, but it will hold the write lock. So if the client
sends another request to a different MDS daemon, which then needs
to request read lock, then it maybe stuck at most for 5 seconds.
Let's try to flush the mdlog which might release the write locks
after mdlog is successfully flushed.

Fixes: https://tracker.ceph.com/issues/51069
Signed-off-by: Xiubo Li <xiubli@redhat.com>
src/mds/Locker.cc