From: Kent Overstreet Date: Wed, 14 Aug 2013 10:57:41 +0000 (-0700) Subject: bcache: Fix a flush/fua performance bug X-Git-Tag: next-20130912~34^2~6^2~53 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=9df79a37eeb7ee89dc56aeed3051be676369359a;p=karo-tx-linux.git bcache: Fix a flush/fua performance bug 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 Cc: linux-stable # >= v3.10 --- diff --git a/drivers/md/bcache/journal.c b/drivers/md/bcache/journal.c index f5203dfc4cfe..8435f81e5d85 100644 --- a/drivers/md/bcache/journal.c +++ b/drivers/md/bcache/journal.c @@ -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); } }