]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: try to flush the mdlog when requesting the rdlock 42071/head
authorXiubo Li <xiubli@redhat.com>
Tue, 15 Jun 2021 03:25:31 +0000 (11:25 +0800)
committerPatrick Donnelly <pdonnell@redhat.com>
Mon, 28 Jun 2021 19:51:51 +0000 (12:51 -0700)
commit48e0d0b803d3314ab0fbc50d558502d894460ace
treec4fcac97468cde862a7e2c3a17e6ca50b69ee534
parent2e1902f3a43860da461e68ebea5ef8dd48418278
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>
(cherry picked from commit 63f7a165ec6bbf9cb1bded29f8bc5c017c01c768)
src/mds/Locker.cc