ceph: implement writeback livelock avoidance using page tagging
authorXiubo Li <xiubli@redhat.com>
Wed, 8 Mar 2023 02:21:44 +0000 (10:21 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Sun, 30 Apr 2023 10:37:28 +0000 (12:37 +0200)
commit7d41870d65db028234333c68e60a034ac335557a
treedc0b183ecf42cb8f43d049ca4088d24ded702965
parent7a6c3a035a2e133b41d01c1a479b50aac4aeecad
ceph: implement writeback livelock avoidance using page tagging

While the mapped IOs continue if we try to flush a file's buffer
we can see that the fsync() won't complete until the IOs finish.

This is analogous to Jan Kara's commit (f446daaea9d4 mm: implement
writeback livelock avoidance using page tagging), we will try to
avoid livelocks of writeback when some steadily creates dirty pages
in a mapping we are writing out.

Signed-off-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/addr.c