From: Sheng Yong Date: Sun, 5 Aug 2018 04:45:35 +0000 (+0800) Subject: f2fs: wake up gc thread immediately when gc_urgent is set X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=a690efffd16302d23b0bbd00f84dcedc11935a8b;p=linux.git 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 Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Kim --- diff --git a/fs/f2fs/sysfs.c b/fs/f2fs/sysfs.c index f22782a0defe6..cd2e030e47b88 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);