aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers.c
diff options
context:
space:
mode:
authorKent Overstreet <[email protected]>2024-04-20 01:54:32 +0000
committerKent Overstreet <[email protected]>2024-04-21 03:00:59 +0000
commit85ab365f7cdf2b2a713823a93e7e5e94f0529627 (patch)
tree45f417ba5f0d0e9e7e299d16bf3a469726b429d4 /rust/helpers.c
parentbcachefs: Tweak btree key cache shrinker so it actually frees (diff)
downloadkernel-85ab365f7cdf2b2a713823a93e7e5e94f0529627.tar.gz
kernel-85ab365f7cdf2b2a713823a93e7e5e94f0529627.zip
bcachefs: Fix deadlock in journal write path
bch2_journal_write() was incorrectly waiting on earlier journal writes synchronously; this usually worked because most of the time we'd be running in the context of a thread that did a journal_buf_put(), but sometimes we'd be running out of the same workqueue that completes those prior journal writes. Additionally, this makes sure to punt to a workqueue before submitting preflushes - we really don't want to be calling submit_bio() in the main transaction commit path. Signed-off-by: Kent Overstreet <[email protected]>
Diffstat (limited to 'rust/helpers.c')
0 files changed, 0 insertions, 0 deletions