From 7fd271b2f203ced72b0c400086f7a78800108a19 Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Thu, 11 Jan 2018 09:00:22 -0500 Subject: bcachefs: minor locking fix --- fs/bcachefs/journal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/bcachefs/journal.c b/fs/bcachefs/journal.c index fa78c0b1826e..9faa87c3af37 100644 --- a/fs/bcachefs/journal.c +++ b/fs/bcachefs/journal.c @@ -1470,6 +1470,8 @@ void bch2_journal_start(struct bch_fs *c) journal_pin_new_entry(j, 1); bch2_journal_buf_init(j); + spin_unlock(&j->lock); + /* * Adding entries to the next journal entry before allocating space on * disk for the next journal entry - this is ok, because these entries @@ -1488,8 +1490,6 @@ void bch2_journal_start(struct bch_fs *c) bl->written = true; } - spin_unlock(&j->lock); - queue_delayed_work(system_freezable_wq, &j->reclaim_work, 0); } -- cgit v1.2.3