From: Kent Overstreet Date: Fri, 10 May 2019 15:58:00 +0000 (-0400) Subject: bcachefs: Fix journal shutdown path X-Git-Tag: v6.7-rc1~201^2~2471 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f7d45beb71f460b9ea138788340926c1b3a4c4d;p=thirdparty%2Flinux.git bcachefs: Fix journal shutdown path Signed-off-by: Kent Overstreet --- diff --git a/fs/bcachefs/journal.c b/fs/bcachefs/journal.c index 25d0631c43dd9..0261c6bbfa929 100644 --- a/fs/bcachefs/journal.c +++ b/fs/bcachefs/journal.c @@ -959,6 +959,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? */