]> git.baikalelectronics.ru Git - kernel.git/commit
ubifs: Limit the number of pages in shrink_liability
authorLiu Song <liu.song11@zte.com.cn>
Tue, 6 Aug 2019 14:21:40 +0000 (22:21 +0800)
committerRichard Weinberger <richard@nod.at>
Thu, 22 Aug 2019 15:25:33 +0000 (17:25 +0200)
commitdb81945f903fc409cc4e2469ddf647f681de95b3
tree34e3a15202d2043e0990602a1f3c79c980468696
parent2ff4d19a5d532faa626e8d2c3cb2c251d3503a53
ubifs: Limit the number of pages in shrink_liability

If the number of dirty pages to be written back is large,
then writeback_inodes_sb will block waiting for a long time,
causing hung task detection alarm. Therefore, we should limit
the maximum number of pages written back this time, which let
the budget be completed faster. The remaining dirty pages
tend to rely on the writeback mechanism to complete the
synchronization.

Fixes: d8b45955dc9b ("writeback: separate starting of sync vs opportunistic writeback")
Signed-off-by: Liu Song <liu.song11@zte.com.cn>
Signed-off-by: Richard Weinberger <richard@nod.at>
fs/ubifs/budget.c