]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
bcache: Fix a flush/fua performance bug
authorKent Overstreet <kmo@daterainc.com>
Tue, 24 Sep 2013 06:17:32 +0000 (23:17 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 5 Oct 2013 14:13:09 +0000 (07:13 -0700)
commit 1394d6761b6e9e15ee7c632a6d48791188727b40 upstream.

bch_journal_meta() was missing the flush to make the journal write
actually go down (instead of waiting up to journal_delay_ms)...

Whoops

Signed-off-by: Kent Overstreet <kmo@daterainc.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/md/bcache/journal.c

index 228f2c37b245b81ff35ba1f2e5e54a430c8e09b5..151a4ab90dd415fe232a5322e23c68a9daa45e86 100644 (file)
@@ -692,6 +692,7 @@ void bch_journal_meta(struct cache_set *c, struct closure *cl)
                if (cl)
                        BUG_ON(!closure_wait(&w->wait, cl));
 
+               closure_flush(&c->journal.io);
                __journal_try_write(c, true);
        }
 }