]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
bcache: Fix a flush/fua performance bug
authorKent Overstreet <kmo@daterainc.com>
Wed, 14 Aug 2013 10:57:41 +0000 (03:57 -0700)
committerKent Overstreet <kmo@daterainc.com>
Mon, 19 Aug 2013 22:30:45 +0000 (15:30 -0700)
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>
Cc: linux-stable <stable@vger.kernel.org> # >= v3.10
drivers/md/bcache/journal.c

index f5203dfc4cfe95d3c27d5935ac1455d8fc7bc53c..8435f81e5d858012e8aca6be8204e923a34b1d01 100644 (file)
@@ -695,6 +695,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);
        }
 }