diff options
Diffstat (limited to 'block/cfq-iosched.c')
-rw-r--r-- | block/cfq-iosched.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c index 1d9c3c70a9a0..6cec3a1dccb8 100644 --- a/block/cfq-iosched.c +++ b/block/cfq-iosched.c | |||
@@ -1841,9 +1841,11 @@ queue_fail: | |||
1841 | return 1; | 1841 | return 1; |
1842 | } | 1842 | } |
1843 | 1843 | ||
1844 | static void cfq_kick_queue(void *data) | 1844 | static void cfq_kick_queue(struct work_struct *work) |
1845 | { | 1845 | { |
1846 | request_queue_t *q = data; | 1846 | struct cfq_data *cfqd = |
1847 | container_of(work, struct cfq_data, unplug_work); | ||
1848 | request_queue_t *q = cfqd->queue; | ||
1847 | unsigned long flags; | 1849 | unsigned long flags; |
1848 | 1850 | ||
1849 | spin_lock_irqsave(q->queue_lock, flags); | 1851 | spin_lock_irqsave(q->queue_lock, flags); |
@@ -1987,7 +1989,7 @@ static void *cfq_init_queue(request_queue_t *q, elevator_t *e) | |||
1987 | cfqd->idle_class_timer.function = cfq_idle_class_timer; | 1989 | cfqd->idle_class_timer.function = cfq_idle_class_timer; |
1988 | cfqd->idle_class_timer.data = (unsigned long) cfqd; | 1990 | cfqd->idle_class_timer.data = (unsigned long) cfqd; |
1989 | 1991 | ||
1990 | INIT_WORK(&cfqd->unplug_work, cfq_kick_queue, q); | 1992 | INIT_WORK(&cfqd->unplug_work, cfq_kick_queue); |
1991 | 1993 | ||
1992 | cfqd->cfq_quantum = cfq_quantum; | 1994 | cfqd->cfq_quantum = cfq_quantum; |
1993 | cfqd->cfq_fifo_expire[0] = cfq_fifo_expire[0]; | 1995 | cfqd->cfq_fifo_expire[0] = cfq_fifo_expire[0]; |