diff options
author | Kent Overstreet <kmo@daterainc.com> | 2013-08-14 03:57:41 -0700 |
---|---|---|
committer | Kent Overstreet <kmo@daterainc.com> | 2013-09-18 13:32:09 -0700 |
commit | d8fbb2335ff061107a391de6b4d6d52402dedf10 (patch) | |
tree | 612d8ec3cc5bde308181b1e18a85fc73a6e88fd3 | |
parent | 6441d621188f611b1f4f2cc07d79e16c2869554b (diff) |
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 <kmo@daterainc.com>
Cc: linux-stable <stable@vger.kernel.org> # >= v3.10
-rw-r--r-- | drivers/md/bcache/journal.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/bcache/journal.c b/drivers/md/bcache/journal.c index b49abb246bb6..daaaed586927 100644 --- a/drivers/md/bcache/journal.c +++ b/drivers/md/bcache/journal.c @@ -686,6 +686,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); } } |