Skip to contentSkip to conversation

f2fs: set highest IO priority for checkpoint thread

PATCH Applied Jaegeuk Kim 4 participants 4 messages Mar 3, 2025 – Mar 5, 2025 F2FS file system

lore
Share & tools
lore

Jaegeuk Kim

author maintainer
#0 lore raw

PATCH 1/1 f2fs: set highest IO priority for checkpoint thread

The checkpoint is the top priority thread which can stop all the filesystem operations. Let's make it RT priority.

---
 fs/f2fs/checkpoint.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/f2fs/checkpoint.c +1 -1
index bd890738b94d..8dbb815a35c0 100644
@@ -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;
Signature · 1 line
2.48.1.711.g2feabab25a-goog
Reviewed-by on v1 1/1
#1 lore raw
Quoted 23 lines · On Mon, Mar 3, 2025 at 2:19 PM Jaegeuk Kim via Linux-f2fs-devel…

The checkpoint is the top priority thread which can stop all the filesystem operations. Let's make it RT priority.

---
 fs/f2fs/checkpoint.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/f2fs/checkpoint.c +1 -2
index bd890738b94d..8dbb815a35c0 100644
@@ -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;
--
Quoted 2 lines

2.48.1.711.g2feabab25a-goog

Quoted 6 lines

_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

#3 lore raw
In reply to Jaegeuk Kim
This patch was applied to jaegeuk/f2fs.git (dev) by Jaegeuk Kim <[email protected]>:

Hello:

This patch was applied to jaegeuk/f2fs.git (dev)
by Jaegeuk Kim <[email protected]>:

Quoted 7 lines · On Mon, 3 Mar 2025 22:17:30 +0000 you wrote:

The checkpoint is the top priority thread which can stop all the filesystem operations. Let's make it RT priority.

---
 fs/f2fs/checkpoint.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Here is the summary with links:
- [f2fs-dev] f2fs: set highest IO priority for checkpoint thread

    https://git.kernel.org/jaegeuk/f2fs/c/8a2d9f00d502

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html