diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2018-01-11 09:00:22 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2018-05-22 00:44:18 -0400 |
commit | 7fd271b2f203ced72b0c400086f7a78800108a19 (patch) | |
tree | f01ccd7cc600c549059672cc872d2309777962ef | |
parent | 205b22aeaa52cb1053c00244531a01bd97b6300e (diff) |
bcachefs: minor locking fix
-rw-r--r-- | fs/bcachefs/journal.c | 4 |
1 files 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); } |