diff options
| author | Kent Overstreet <[email protected]> | 2024-04-20 01:54:32 +0000 |
|---|---|---|
| committer | Kent Overstreet <[email protected]> | 2024-04-21 03:00:59 +0000 |
| commit | 85ab365f7cdf2b2a713823a93e7e5e94f0529627 (patch) | |
| tree | 45f417ba5f0d0e9e7e299d16bf3a469726b429d4 /net/nsh/nsh.c | |
| parent | bcachefs: Tweak btree key cache shrinker so it actually frees (diff) | |
| download | kernel-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 'net/nsh/nsh.c')
0 files changed, 0 insertions, 0 deletions
