Re: [f2fs-dev] [PATCH 1/2] f2fs: fix to use bio_in_atomic() in f2fs_write_end_io()

From: patchwork-bot+f2fs

Date: Tue Oct 13 2026 - 18:32:48 EST


Hello:

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

On Sat, 10 Oct 2026 14:55:45 +0800 you wrote:
> From: Chao Yu <chao@xxxxxxxxxx>
>
> f2fs_write_end_io() uses in_atomic() to decide whether a write bio which
> exceeds max_atc_write_bio_size or max_atc_write_bio_entry_cnt should be
> completed in sbi->wq rather than in the current context.
>
> However, in_atomic() is not meant to be used outside core kernel code
> (checkpatch.pl warns about it), as it only looks at preempt_count(): it
> misses irqs-disabled and RCU read-side critical sections, and on kernels
> without CONFIG_PREEMPT_COUNT it cannot see spinlock-held sections at all.
> In those contexts, a large write bio will still be completed inline,
> which defeats the purpose of the above knobs.
>
> [...]

Here is the summary with links:
- [f2fs-dev,1/2] f2fs: fix to use bio_in_atomic() in f2fs_write_end_io()
https://git.kernel.org/jaegeuk/f2fs/c/e4582e5f3b43
- [f2fs-dev,2/2] f2fs: fix to use bio_in_atomic() in f2fs_read_end_io()
https://git.kernel.org/jaegeuk/f2fs/c/a605d5d71a6d

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