]> www.infradead.org Git - users/jedix/linux-maple.git/commit
f2fs: support FAULT_TIMEOUT
authorChao Yu <chao@kernel.org>
Fri, 25 Apr 2025 09:50:55 +0000 (17:50 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 6 May 2025 15:46:55 +0000 (15:46 +0000)
commit0244c77fedc68eda261b4fec24b0476455e3b654
treecc6cd0d41b7676774532a4b7d649035ecc0904b3
parentcf7cd17c97ad3808d9bd3840166b9216ccc777e1
f2fs: support FAULT_TIMEOUT

Support to inject a timeout fault into function, currently it only
support to inject timeout to commit_atomic_write flow to reproduce
inconsistent bug, like the bug fixed by commit f098aeba04c9 ("f2fs:
fix to avoid atomicity corruption of atomic file").

By default, the new type fault will inject 1000ms timeout, and the
timeout process can be interrupted by SIGKILL.

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