diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2019-05-10 11:58:00 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2019-05-10 11:58:00 -0400 |
commit | 507d33d9d08769167f67d94cd8646054cb81c3a9 (patch) | |
tree | db91903e227274cc25f97a152d05cd9273b2d26a | |
parent | 454bd4f82d85bb42a86b8eb0172b13e86e5788a7 (diff) |
bcachefs: Fix journal shutdown path
-rw-r--r-- | fs/bcachefs/journal.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/bcachefs/journal.c b/fs/bcachefs/journal.c index 3ec80437504e..0a174dffe76e 100644 --- a/fs/bcachefs/journal.c +++ b/fs/bcachefs/journal.c @@ -963,6 +963,8 @@ void bch2_fs_journal_stop(struct journal *j) { struct bch_fs *c = container_of(j, struct bch_fs, journal); + bch2_journal_flush_all_pins(j); + wait_event(j->wait, journal_entry_close(j)); /* do we need to write another journal entry? */ |