summaryrefslogtreecommitdiff
path: root/drivers/md/bcache/journal.h
diff options
context:
space:
mode:
authorKent Overstreet <kmo@daterainc.com>2013-10-08 15:50:46 -0700
committerKent Overstreet <kmo@daterainc.com>2013-11-10 21:55:53 -0800
commit7857d5d470ec53bae187d144c69065ad3c0ebc21 (patch)
tree815b7786112c02cabf976f19b9f93e5f44d50548 /drivers/md/bcache/journal.h
parent1fa8455deb92e9ec7756df23030e73b2d28eeca7 (diff)
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;