Bug 214299 - A deadlock problem caused by the quota_sem set in db6ec53b7e0
Summary: A deadlock problem caused by the quota_sem set in db6ec53b7e0
Status: ASSIGNED
Alias: None
Product: File System
Classification: Unclassified
Component: f2fs (show other bugs)
Hardware: All Linux
: P1 high
Assignee: Default virtual assignee for f2fs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-03 00:56 UTC by zhuangyi1
Modified: 2021-09-22 03:53 UTC (History)
1 user (show)

See Also:
Kernel Version: 5.3.0
Tree: Mainline
Regression: No


Attachments

Description zhuangyi1 2021-09-03 00:56:11 UTC
thread 1:                        thread 2:
f2fs_dquot_acquire
down_read(&sbi->quota_sem)
                                 f2fs_write_checkpoint
                                 block_operations
                                 f2fs_look_all
                                 down_write(&sbi->cp_rwsem)
f2fs_quota_write
f2fs_write_begin
__do_map_lock
f2fs_lock_op 
down_read(&sbi->cp_rwsem)        
                                 __need_flush_qutoa
                                 down_write(&sbi->quota_sem)
Comment 1 Chao Yu 2021-09-09 23:53:36 UTC
I've sent a patch for this bug, could you please test with it?

https://lore.kernel.org/linux-f2fs-devel/20210903023811.3458-1-chao@kernel.org/T/#u
Comment 2 zhuangyi1 2021-09-22 03:53:34 UTC
(In reply to Chao Yu from comment #1)
> I've sent a patch for this bug, could you please test with it?
> 
> https://lore.kernel.org/linux-f2fs-devel/20210903023811.3458-1-chao@kernel.
> org/T/#u

Thanks, I will verify this patch as soon as possible.

Note You need to log in before you can comment on or make changes to this bug.