mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-10-31 16:54:21 +00:00
bcachefs: Add missing bch2_journal_do_writes() call
This fixes a rare deadlock when we're doing an emergency shutdown due to failure to do a journal write. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
d6b52f6828
commit
89d21b69b4
1 changed files with 7 additions and 0 deletions
|
|
@ -1677,6 +1677,13 @@ static CLOSURE_CALLBACK(journal_write_done)
|
||||||
mod_delayed_work(j->wq, &j->write_work, max(0L, delta));
|
mod_delayed_work(j->wq, &j->write_work, max(0L, delta));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* We don't typically trigger journal writes from her - the next journal
|
||||||
|
* write will be triggered immediately after the previous one is
|
||||||
|
* allocated, in bch2_journal_write() - but the journal write error path
|
||||||
|
* is special:
|
||||||
|
*/
|
||||||
|
bch2_journal_do_writes(j);
|
||||||
spin_unlock(&j->lock);
|
spin_unlock(&j->lock);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue