diff options
author | Alan Huang <mmpgouride@gmail.com> | 2025-08-05 22:14:35 +0800 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2025-08-05 11:05:14 -0400 |
commit | 2ffc4e0742190224286a0e88720b9dab570e9828 (patch) | |
tree | e20d013bf1c5fac9bdd4929fd007908f18310bd1 /tools/testing/selftests/bpf/benchs/run_common.sh | |
parent | d4bd0a36f88e0689e1a571bdefa9bc52cd76c57a (diff) |
bcachefs: Fix readahead involved deadlockbcachefs-testing
readahead first lock the folio, then invokes aops->readahead, which
locks the two state lock to block subsequent direct I/O. However,
direct IO or bchfs_fpunch first lock the two state lock to block
subsequent buffered I/O, and then lock the folio to invalidate or
truncate it. Therefore, there is a deadlock:
thread1 thread2
lock folio bch2_pagecache_block_get
bch2_pagecache_add_get lock folio
Reported-by: syzbot+23e4a7772eb9a9715b85@syzkaller.appspotmail.com
Signed-off-by: Alan Huang <mmpgouride@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'tools/testing/selftests/bpf/benchs/run_common.sh')
0 files changed, 0 insertions, 0 deletions