diff options
author | Sheng Yong <shengyong1@huawei.com> | 2018-08-05 06:45:35 +0200 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2018-08-13 19:48:17 +0200 |
commit | a690efffd16302d23b0bbd00f84dcedc11935a8b (patch) | |
tree | d07c8f7fdd2be611e81ab3addb9ba689f60c7c24 /fs/f2fs | |
parent | f2fs: fix incorrect range->len in f2fs_trim_fs() (diff) | |
download | linux-a690efffd16302d23b0bbd00f84dcedc11935a8b.tar.xz linux-a690efffd16302d23b0bbd00f84dcedc11935a8b.zip |
f2fs: wake up gc thread immediately when gc_urgent is set
Fixes: 5b0e95398e2b ("f2fs: introduce sbi->gc_mode to determine the policy")
Signed-off-by: Sheng Yong <shengyong1@huawei.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs')
-rw-r--r-- | fs/f2fs/sysfs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/sysfs.c b/fs/f2fs/sysfs.c index f22782a0defe..cd2e030e47b8 100644 --- a/fs/f2fs/sysfs.c +++ b/fs/f2fs/sysfs.c @@ -253,6 +253,7 @@ out: if (t >= 1) { sbi->gc_mode = GC_URGENT; if (sbi->gc_thread) { + sbi->gc_thread->gc_wake = 1; wake_up_interruptible_all( &sbi->gc_thread->gc_wait_queue_head); wake_up_discard_thread(sbi, true); |