Re: [f2fs-dev] [PATCH] f2fs: fix false alarm of lockdep on cp_global_sem lock

patchwork-bot+f2fs
2026-03-24T17:32:35Z

Hello:

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

On Fri, 6 Mar 2026 12:24:20 +0000 you wrote:
> lockdep reported a potential deadlock:
>
> a) TCMU device removal context:
> - call del_gendisk() to get q->q_usage_counter
> - call start_flush_work() to get work_completion of wb->dwork
> b) f2fs writeback context:
> - in wb_workfn(), which holds work_completion of wb->dwork
> - call f2fs_balance_fs() to get sbi->gc_lock
> c) f2fs vfs_write context:
> - call f2fs_gc() to get sbi->gc_lock
> - call f2fs_write_checkpoint() to get sbi->cp_global_sem
> d) f2fs mount context:
> - call recover_fsync_data() to get sbi->cp_global_sem
> - call f2fs_check_and_fix_write_pointer() to call blkdev_report_zones()
> that goes down to blk_mq_alloc_request and get q->q_usage_counter
>
> [...]

Here is the summary with links:
- [f2fs-dev] f2fs: fix false alarm of lockdep on cp_global_sem lock
https://git.kernel.org/jaegeuk/f2fs/c/6163918b64ae

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.