diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-04-19 21:54:32 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-04-20 23:00:59 -0400 |
commit | 85ab365f7cdf2b2a713823a93e7e5e94f0529627 (patch) | |
tree | 45f417ba5f0d0e9e7e299d16bf3a469726b429d4 /tools/laptop | |
parent | adfe9357c39e251ffe22ceaa1edb4b7662ed76e6 (diff) | |
download | linux-stable-85ab365f7cdf2b2a713823a93e7e5e94f0529627.tar.gz linux-stable-85ab365f7cdf2b2a713823a93e7e5e94f0529627.tar.bz2 linux-stable-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 <kent.overstreet@linux.dev>
Diffstat (limited to 'tools/laptop')
0 files changed, 0 insertions, 0 deletions