]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
f2fs: sysfs: introduce max_lock_elapsed_time
authorChao Yu <chao@kernel.org>
Sun, 4 Jan 2026 02:07:17 +0000 (10:07 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 7 Jan 2026 03:17:06 +0000 (03:17 +0000)
commite4b75621fc439399b94c4265cb54d2bda1177397
treeb7e6b072df59ef6247895ff3d5ccb3fe6a33501a
parent79b3cebc70fcadf914d3ad1ae59d59cc62a47c46
f2fs: sysfs: introduce max_lock_elapsed_time

This patch add a new sysfs node in /sys/fs/f2fs/<device>/max_lock_elapsed_time.

This is a threshold, once a thread enters critical region that lock covers,
total elapsed time exceeds this threshold, f2fs will print tracepoint to dump
information of related context. This sysfs entry can be used to control the
value of threshold, by default, the value is 500 ms.

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/super.c
fs/f2fs/sysfs.c