Re: [f2fs-dev] [PATCH] f2fs: fix to avoid potential deadloop in f2fs_fsync_node_pages()
From: patchwork-bot+f2fs
Date: Tue Aug 25 2026 - 11:43:48 EST
Hello:
This patch was applied to jaegeuk/f2fs.git (dev)
by Jaegeuk Kim <jaegeuk@xxxxxxxxxx>:
On Mon, 24 Aug 2026 21:17:29 +0800 you wrote:
> There is potential deadloop in race condition:
>
> Thread A Thread B
> - fsync
> - f2fs_do_sync_file
> - f2fs_fsync_node_pages
> - last_fsync_dnode
> - folio_get(last_folio)
> - f2fs_setattr
> - f2fs_truncate
> - f2fs_truncate_blocks
> - f2fs_do_truncate_blocks
> - f2fs_truncate_inode_blocks
> - truncate_dnode
> - truncate_node
> - invalidate_mapping_pages
> - folio->mapping = NULL
> - is_node_folio alwasy return false
> - atomic && !marked is always true,
> then goto retry
>
> [...]
Here is the summary with links:
- [f2fs-dev] f2fs: fix to avoid potential deadloop in f2fs_fsync_node_pages()
https://git.kernel.org/jaegeuk/f2fs/c/ce366bfa821e
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html