]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
f2fs: add timeout in f2fs_enable_checkpoint()
authorChao Yu <chao@kernel.org>
Tue, 30 Dec 2025 16:22:52 +0000 (11:22 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Jan 2026 09:14:59 +0000 (10:14 +0100)
commit621dc9eb90a59fe62d8589ce2489e83efad4bf21
tree247fb842a11080b750ac0ed5228f6c43b1f68d87
parentcccd92ec7e34487593afee7f7b0dfa98108b0827
f2fs: add timeout in f2fs_enable_checkpoint()

[ Upstream commit 4bc347779698b5e67e1514bab105c2c083e55502 ]

During f2fs_enable_checkpoint() in remount(), if we flush a large
amount of dirty pages into slow device, it may take long time which
will block write IO, let's add a timeout machanism during dirty
pages flush to avoid long time block in f2fs_enable_checkpoint().

Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Stable-dep-of: be112e7449a6 ("f2fs: fix to propagate error from f2fs_enable_checkpoint()")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/f2fs/f2fs.h
fs/f2fs/super.c