diff options
| author | Yunlei He <heyunlei@huawei.com> | 2018-06-21 14:49:06 +0800 |
|---|---|---|
| committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2018-09-18 13:36:13 -0700 |
| commit | b90a91b0cbf6c4ffc3371680e00203ea631aa2e9 (patch) | |
| tree | 2a607527555a4afdf13c0d9f51ff24be6d4176e3 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
| parent | bb36dbbd962fa1f30b15f44b93324517beae136f (diff) | |
f2fs: fix a hungtask problem caused by congestion_wait
This patch fix hungtask problem which can be reproduced as follow:
Thread 0~3:
while true
do
touch /xxx/test/file_xxx
done
Thread 4 write a new checkpoint every three seconds.
In the meantime, fio start 16 threads for randwrite.
With my debug info, cycles num will exceed 1000 in function
f2fs_sync_dirty_inodes, and most of cycle will be dropped
into congestion_wait() and sleep more than 20ms. Cycles num
reduced to 3 with this patch.
Signed-off-by: Yunlei He <heyunlei@huawei.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions
