bcache: Move journal work to new flush wq
[linux-2.6-microblaze.git] / drivers / md / bcache / journal.c
index aefbdb7..c6613e8 100644 (file)
@@ -932,8 +932,8 @@ atomic_t *bch_journal(struct cache_set *c,
                journal_try_write(c);
        } else if (!w->dirty) {
                w->dirty = true;
-               schedule_delayed_work(&c->journal.work,
-                                     msecs_to_jiffies(c->journal_delay_ms));
+               queue_delayed_work(bch_flush_wq, &c->journal.work,
+                                  msecs_to_jiffies(c->journal_delay_ms));
                spin_unlock(&c->journal.lock);
        } else {
                spin_unlock(&c->journal.lock);