1
0
Fork 0

f2fs: wake up gc thread immediately when gc_urgent is set

Fixes: 5b0e95398e ("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>
hifive-unleashed-5.1
Sheng Yong 2018-08-05 12:45:35 +08:00 committed by Jaegeuk Kim
parent 6eae269461
commit a690efffd1
1 changed files with 1 additions and 0 deletions

View File

@ -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);