f2fs: set highest IO priority for checkpoint thread
authorJaegeuk Kim <jaegeuk@kernel.org>
Mon, 3 Mar 2025 22:16:21 +0000 (22:16 +0000)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 5 Mar 2025 14:37:26 +0000 (14:37 +0000)
The checkpoint is the top priority thread which can stop all the filesystem
operations. Let's make it RT priority.

Reviewed-by: Daeho Jeong <daehojeong@google.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/checkpoint.c

index 75b7196d2c810a97939f8b27574a3f105ff4b3e2..a35595f8d3f514d8f5345a250bb212dddf1ccf55 100644 (file)
@@ -21,7 +21,7 @@
 #include "iostat.h"
 #include <trace/events/f2fs.h>
 
-#define DEFAULT_CHECKPOINT_IOPRIO (IOPRIO_PRIO_VALUE(IOPRIO_CLASS_BE, 3))
+#define DEFAULT_CHECKPOINT_IOPRIO (IOPRIO_PRIO_VALUE(IOPRIO_CLASS_RT, 3))
 
 static struct kmem_cache *ino_entry_slab;
 struct kmem_cache *f2fs_inode_entry_slab;