diff options
author | Kent Overstreet <kmo@daterainc.com> | 2013-09-23 23:17:32 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-09-24 14:41:43 -0700 |
commit | 1394d6761b6e9e15ee7c632a6d48791188727b40 (patch) | |
tree | 0ae9311ab15399b19ad53c8232b657d2b2b84ed5 /drivers/md/bcache | |
parent | c2a4f3183a1248f615a695fbd8905da55ad11bba (diff) | |
download | kernel_goldelico_gta04-1394d6761b6e9e15ee7c632a6d48791188727b40.zip kernel_goldelico_gta04-1394d6761b6e9e15ee7c632a6d48791188727b40.tar.gz kernel_goldelico_gta04-1394d6761b6e9e15ee7c632a6d48791188727b40.tar.bz2 |
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
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/md/bcache')
-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 f5203df..8435f81 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); } } |