summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorNikolay Borisov <nborisov@suse.com>2020-10-20 12:44:17 +0300
committerDavid Sterba <dsterba@suse.com>2020-12-08 15:53:36 +0100
commitfb8a7e941b1b4c1c2fa79b305d4c3fc41ad9bbda (patch)
treeb921c6141761365c55b10006765cbea053860bc9 /tools/perf/scripts/python
parent643900bee4141e1b1c47dce93973a0d1a314d8a5 (diff)
downloadlinux-fb8a7e941b1b4c1c2fa79b305d4c3fc41ad9bbda.tar.gz
linux-fb8a7e941b1b4c1c2fa79b305d4c3fc41ad9bbda.zip
btrfs: calculate more accurate remaining time to sleep in transaction_kthread
If transaction_kthread is woken up before btrfs_fs_info::commit_interval seconds have elapsed it will sleep for a fixed period of 5 seconds. This is not a problem per-se but is not accurate. Instead the code should sleep for an interval which guarantees on next wakeup commit_interval would have passed. Since time tracking is not precise subtract 1 second from delta to ensure the delay we end up waiting will be longer than than the wake up period. Signed-off-by: Nikolay Borisov <nborisov@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions