Re: [f2fs-dev] [PATCH] f2fs: fix potential deadlock due to unpaired node_write lock use

From: patchwork-bot+f2fs
Date: Wed May 17 2023 - 21:50:40 EST


Hello:

This patch was applied to jaegeuk/f2fs.git (dev)
by Jaegeuk Kim <jaegeuk@xxxxxxxxxx>:

On Sun, 14 May 2023 16:07:23 +0800 you wrote:
> If S_NOQUOTA is cleared from inode during data page writeback of quota
> file, it may miss to unlock node_write lock, result in potential
> deadlock, fix to use the lock in paired.
>
> Kworker Thread
> - writepage
> if (IS_NOQUOTA())
> f2fs_down_read(&sbi->node_write);
> - vfs_cleanup_quota_inode
> - inode->i_flags &= ~S_NOQUOTA;
> if (IS_NOQUOTA())
> f2fs_up_read(&sbi->node_write);
>
> [...]

Here is the summary with links:
- [f2fs-dev] f2fs: fix potential deadlock due to unpaired node_write lock use
https://git.kernel.org/jaegeuk/f2fs/c/a731b6aefbb4

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html