]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
ceph: flush the mdlog for filesystem sync
authorXiubo Li <xiubli@redhat.com>
Tue, 19 Apr 2022 00:58:49 +0000 (08:58 +0800)
committerJeff Layton <jlayton@kernel.org>
Fri, 29 Apr 2022 20:06:36 +0000 (16:06 -0400)
commitb90fb4a76d35c5cadce3c16912c8115b8540ea25
tree054f21f70f1c8e129415a6ba60f981ec95e70f05
parent1664fcfc7a069faa7dd8403c0b3878d693fe4fa9
ceph: flush the mdlog for filesystem sync

Before waiting for a request's safe reply, we will send the mdlog flush
request to the relevant MDS. And this will also flush the mdlog for all
the other unsafe requests in the same session, so we can record the last
session and no need to flush mdlog again in the next loop. But there
still have cases that it may send the mdlog flush requst twice or more,
but that should be not often.

Rename wait_unsafe_requests() to
flush_mdlog_and_wait_inode_unsafe_requests() to make it more
descriptive.

[Xiubo: fold a regression fixing about the request refcount leak from Jeff]

URL: https://tracker.ceph.com/issues/55284
URL: https://tracker.ceph.com/issues/55411
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Xiubo Li <xiubli@redhat.com>
fs/ceph/mds_client.c