fix: writeback: Fix sync livelock due to b_dirty_time processing (v5.9)
authorMichael Jeanson <mjeanson@efficios.com>
Mon, 31 Aug 2020 18:16:01 +0000 (14:16 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 24 Sep 2020 15:37:07 +0000 (11:37 -0400)
commit7318a1e88c8097733f5a05529069e4e03c142cae
tree41bec0ad323c517b38b588fb27cc20b195a41a28
parent873c27149c8ba3f1ca960b4d90ef272282cd8f6d
fix: writeback: Fix sync livelock due to b_dirty_time processing (v5.9)

See upstream commit:

  commit f9cae926f35e8230330f28c7b743ad088611a8de
  Author: Jan Kara <jack@suse.cz>
  Date:   Fri May 29 16:08:58 2020 +0200

    writeback: Fix sync livelock due to b_dirty_time processing

    When we are processing writeback for sync(2), move_expired_inodes()
    didn't set any inode expiry value (older_than_this). This can result in
    writeback never completing if there's steady stream of inodes added to
    b_dirty_time list as writeback rechecks dirty lists after each writeback
    round whether there's more work to be done. Fix the problem by using
    sync(2) start time is inode expiry value when processing b_dirty_time
    list similarly as for ordinarily dirtied inodes. This requires some
    refactoring of older_than_this handling which simplifies the code
    noticeably as a bonus.

Change-Id: I99e505965d278565ae512a30842cdce888e0c84a
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
instrumentation/events/lttng-module/writeback.h
This page took 0.027616 seconds and 4 git commands to generate.