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> Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
This commit is contained in:
parent
008f8557c0
commit
414da43f9f
1 changed files with 2 additions and 0 deletions
|
@ -175,6 +175,8 @@ int f2fs_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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue