OpenCloudOS-Kernel/fs/f2fs
Sahitya Tummala c35b8d5e75 f2fs: fix the periodic wakeups of discard thread
Fix the unnecessary periodic wakeups of discard thread that happens under
below two conditions -

1. When f2fs is heavily utilized over 80%, the current discard policy
sets the max sleep timeout of discard thread as 50ms
(DEF_MIN_DISCARD_ISSUE_TIME). But this is set even when there are
no pending discard commands to be issued.

2. In the issue_discard_thread() path when there are no pending discard
commands, it fails to reset the wait_ms to max timeout value.

Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
2021-04-06 07:18:31 -07:00
..
Kconfig f2fs: compress: Allow modular (de)compression algorithms 2021-03-12 13:16:42 -08:00
Makefile f2fs: deprecate f2fs_trace_io 2021-01-27 15:20:07 -08:00
acl.c idmapped-mounts-v5.12 2021-02-23 13:39:45 -08:00
acl.h fs: make helpers idmap mount aware 2021-01-24 14:27:20 +01:00
checkpoint.c f2fs: update comments for explicit memory barrier 2021-03-12 13:16:42 -08:00
compress.c f2fs: add sysfs nodes to get runtime compression stat 2021-03-25 18:20:50 -07:00
data.c f2fs: fix to use per-inode maxbytes in f2fs_fiemap 2021-03-25 18:20:50 -07:00
debug.c f2fs: introduce checkpoint_merge mount option 2021-02-03 13:03:06 -08:00
dir.c f2fs-for-5.11-rc1 2020-12-17 11:18:00 -08:00
extent_cache.c f2fs: support 64-bits key in f2fs rb-tree node entry 2020-09-10 14:03:30 -07:00
f2fs.h f2fs: introduce gc_merge mount option 2021-03-30 18:48:56 -07:00
file.c f2fs: fix to avoid GC/mmap race with f2fs_truncate() 2021-04-06 07:16:22 -07:00
gc.c f2fs: introduce gc_merge mount option 2021-03-30 18:48:56 -07:00
gc.h f2fs: introduce gc_merge mount option 2021-03-30 18:48:56 -07:00
hash.c f2fs: Handle casefolding with Encryption 2020-12-02 22:00:21 -08:00
inline.c f2fs: fix a redundant call to f2fs_balance_fs if an error occurs 2021-03-12 13:16:44 -08:00
inode.c f2fs: fix a typo in inode.c 2021-03-26 10:27:44 -07:00
namei.c idmapped-mounts-v5.12 2021-02-23 13:39:45 -08:00
node.c f2fs: allow to change discard policy based on cached discard cmds 2021-03-26 10:27:44 -07:00
node.h f2fs: allow to change discard policy based on cached discard cmds 2021-03-26 10:27:44 -07:00
recovery.c f2fs: change to use rwsem for cp_mutex 2020-12-02 22:00:21 -08:00
segment.c f2fs: fix the periodic wakeups of discard thread 2021-04-06 07:18:31 -07:00
segment.h f2fs: fix to avoid touching checkpointed data in get_victim() 2021-03-26 10:27:01 -07:00
shrinker.c f2fs: avoid race condition for shrinker count 2020-12-03 00:59:26 -08:00
super.c f2fs: set checkpoint_merge by default 2021-04-01 18:36:35 -07:00
sysfs.c f2fs: add sysfs nodes to get runtime compression stat 2021-03-25 18:20:50 -07:00
verity.c f2fs: fix error handling in f2fs_end_enable_verity() 2021-03-12 13:16:44 -08:00
xattr.c idmapped-mounts-v5.12 2021-02-23 13:39:45 -08:00
xattr.h f2fs: code cleanup by removing ifdef macro surrounding 2020-05-26 18:56:10 -07:00