aboutsummaryrefslogtreecommitdiff
path: root/fs/f2fs
diff options
context:
space:
mode:
authorPark Ju Hyung <qkrwngud825@gmail.com>2017-09-26 10:51:24 +0900
committerMoyster <oysterized@gmail.com>2018-05-23 19:11:36 +0200
commit57a20b86b1279bbeb7ad5b19af18ac0fcd2f839c (patch)
tree5c54cf11f230f17f124b790ef29b14fa33f6aae4 /fs/f2fs
parentc3b09420bef57fcf64da2c2c02300d65c192896c (diff)
f2fs: set ioprio of GC kthread to idle
GC should run conservatively as possible to reduce latency spikes to the user. Setting ioprio to idle class will allow the kernel to schedule GC thread's I/O to not affect any other processes' I/O requests. Signed-off-by: Park Ju Hyung <qkrwngud825@gmail.com>
Diffstat (limited to 'fs/f2fs')
-rw-r--r--fs/f2fs/gc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/f2fs/gc.c b/fs/f2fs/gc.c
index d8110db46..2ad858dd6 100644
--- a/fs/f2fs/gc.c
+++ b/fs/f2fs/gc.c
@@ -143,6 +143,8 @@ int start_gc_thread(struct f2fs_sb_info *sbi)
kfree(gc_th);
sbi->gc_thread = NULL;
}
+ set_task_ioprio(sbi->gc_thread->f2fs_gc_task,
+ IOPRIO_PRIO_VALUE(IOPRIO_CLASS_IDLE, 0));
out:
return err;
}