Skip to contentSkip to conversation

f2fs: wake up gc thread immediately when gc_urgent is set

PATCH In review Sheng Yong 2 participants 2 messages Aug 5, 2018 – Aug 6, 2018 F2FS file system

lore
Share & tools
lore

Sheng Yong

author
#0 lore raw

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")
---
 fs/f2fs/sysfs.c | 1 +
 1 file changed, 1 insertion(+)
fs/f2fs/sysfs.c +1 -0
index f22782a0defe..cd2e030e47b8 100644
@@ -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