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

From: patchwork-bot+f2fs

Date: Tue Mar 24 2026 - 13:38:43 EST


Hello:

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

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.
https://korg.docs.kernel.org/patchwork/pwbot.html