]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
f2fs: sysfs: introduce inject_lock_timeout
authorChao Yu <chao@kernel.org>
Sun, 4 Jan 2026 02:07:29 +0000 (10:07 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 7 Jan 2026 03:17:08 +0000 (03:17 +0000)
commitd36de29f4bb59b24e57ff22403baae6fc7e89bd8
treeecf160928cb95cc3710efcce15a16fef8d7e0f9e
parentc56254e2e04216839699937a04aac18c585e833e
f2fs: sysfs: introduce inject_lock_timeout

This patch adds a new sysfs node in /sys/fs/f2fs/<disk>/inject_lock_timeout,
it relies on CONFIG_F2FS_FAULT_INJECTION kernel config.

It can be used to simulate different type of timeout in lock duration.

==========     ===============================
Flag_Value     Flag_Description
==========     ===============================
0x00000000     No timeout (default)
0x00000001     Simulate running time
0x00000002     Simulate IO type sleep time
0x00000003     Simulate Non-IO type sleep time
0x00000004     Simulate runnable time
==========     ===============================

Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Documentation/ABI/testing/sysfs-fs-f2fs
fs/f2fs/checkpoint.c
fs/f2fs/f2fs.h
fs/f2fs/segment.c
fs/f2fs/super.c
fs/f2fs/sysfs.c