diff options
author | Sheng Yong <shengyong1@huawei.com> | 2018-08-05 00:45:35 -0400 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2018-08-13 13:48:17 -0400 |
commit | a690efffd16302d23b0bbd00f84dcedc11935a8b (patch) | |
tree | d07c8f7fdd2be611e81ab3addb9ba689f60c7c24 | |
parent | 6eae269461b84406a1240189e6f81e5234b6393c (diff) |
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>
-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: | |||
253 | if (t >= 1) { | 253 | if (t >= 1) { |
254 | sbi->gc_mode = GC_URGENT; | 254 | sbi->gc_mode = GC_URGENT; |
255 | if (sbi->gc_thread) { | 255 | if (sbi->gc_thread) { |
256 | sbi->gc_thread->gc_wake = 1; | ||
256 | wake_up_interruptible_all( | 257 | wake_up_interruptible_all( |
257 | &sbi->gc_thread->gc_wait_queue_head); | 258 | &sbi->gc_thread->gc_wait_queue_head); |
258 | wake_up_discard_thread(sbi, true); | 259 | wake_up_discard_thread(sbi, true); |