summaryrefslogtreecommitdiffstats
path: root/drivers/md/bcache/journal.h
diff options
context:
space:
mode:
authorKent Overstreet <kmo@daterainc.com>2013-10-09 00:50:46 +0200
committerKent Overstreet <kmo@daterainc.com>2013-11-11 06:55:53 +0100
commit7857d5d470ec53bae187d144c69065ad3c0ebc21 (patch)
tree815b7786112c02cabf976f19b9f93e5f44d50548 /drivers/md/bcache/journal.h
parentbcache: Fix dirty_data accounting (diff)
downloadlinux-7857d5d470ec53bae187d144c69065ad3c0ebc21.tar.xz
linux-7857d5d470ec53bae187d144c69065ad3c0ebc21.zip
bcache: Fix a journalling performance bug
Diffstat (limited to 'drivers/md/bcache/journal.h')
-rw-r--r--drivers/md/bcache/journal.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/md/bcache/journal.h b/drivers/md/bcache/journal.h
index 3d7851274b04..3ca93d3d566c 100644
--- a/drivers/md/bcache/journal.h
+++ b/drivers/md/bcache/journal.h
@@ -140,7 +140,8 @@ struct journal {
spinlock_t lock;
/* used when waiting because the journal was full */
struct closure_waitlist wait;
- struct closure_with_timer io;
+ struct closure io;
+ struct delayed_work work;
/* Number of blocks free in the bucket(s) we're currently writing to */
unsigned blocks_free;