Bug 215837
Summary: | A potential ABBA dead lock for writeback process and fsync process | ||
---|---|---|---|
Product: | File System | Reporter: | Zhihao Cheng (chengzhihao1) |
Component: | VFS | Assignee: | fs_vfs |
Status: | NEW --- | ||
Severity: | normal | ||
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 5.18-rc1 | Subsystem: | |
Regression: | No | Bisected commit-id: | |
Attachments: |
reproduce.diff
b.c |
Description
Zhihao Cheng
2022-04-14 13:33:10 UTC
Created attachment 300757 [details]
reproduce.diff
Created attachment 300758 [details]
b.c
sync will break the deadlock. wb_writeback if ((work->for_background || work->for_kupdate) && !list_empty(&wb->work_list)) // sync adds new work in wb->work_list break; |