f2fs: wake up gc thread immediately when gc_urgent is set
PATCH 1/1 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 <[email protected]>
--- fs/f2fs/sysfs.c | 1 + 1 file changed, 1 insertion(+)
fs/f2fs/sysfs.c +1 -0
@@ -253,6 +253,7 @@ static ssize_t __sbi_store(struct f2fs_attr *a,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);
Signature · 6 lines
2.17.1 ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Quoted 2 lines · Sheng Yong
Fixes 5b0e95398e2b ("f2fs: introduce sbi->gc_mode to determine the policy")Signed-off-by Sheng Yong <[email protected]>
Reviewed-by Chao Yu <[email protected]>
Thanks,
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot