diff options
| author | Yunlei He <heyunlei@huawei.com> | 2018-06-21 14:49:06 +0800 |
|---|---|---|
| committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2018-07-27 18:03:59 +0900 |
| commit | 2a63531a612f776ea754fee6272fc8f16a06b9d6 (patch) | |
| tree | e75c0f7748a519b15def83a7985f4aa379c68045 /tools/perf/scripts/python | |
| parent | f2fs: Fix uninitialized return in f2fs_ioc_shutdown() (diff) | |
| download | linux-2a63531a612f776ea754fee6272fc8f16a06b9d6.tar.gz linux-2a63531a612f776ea754fee6272fc8f16a06b9d6.zip | |
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')
0 files changed, 0 insertions, 0 deletions
