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:35:51 -0400 |
commit | 42cb7d829b2307acb50bb7672f7bab8c472c073b (patch) | |
tree | 20868cba67a4c5373a3cd8bbd7c9301d8330f174 /sound/soc/codecs/wm8903.h | |
parent | 4153fd0f5a221bcd1d6bf2489616bd7468fc1db3 (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 'sound/soc/codecs/wm8903.h')
0 files changed, 0 insertions, 0 deletions