diff options
Diffstat (limited to 'block')
-rw-r--r-- | block/blk-core.c | 3 | ||||
-rw-r--r-- | block/blk-flush.c | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/block/blk-core.c b/block/blk-core.c index 0a9d17269957..222fe84d6ac4 100644 --- a/block/blk-core.c +++ b/block/blk-core.c | |||
@@ -600,9 +600,6 @@ struct request_queue *blk_alloc_queue_node(gfp_t gfp_mask, int node_id) | |||
600 | #ifdef CONFIG_BLK_CGROUP | 600 | #ifdef CONFIG_BLK_CGROUP |
601 | INIT_LIST_HEAD(&q->blkg_list); | 601 | INIT_LIST_HEAD(&q->blkg_list); |
602 | #endif | 602 | #endif |
603 | INIT_LIST_HEAD(&q->flush_queue[0]); | ||
604 | INIT_LIST_HEAD(&q->flush_queue[1]); | ||
605 | INIT_LIST_HEAD(&q->flush_data_in_flight); | ||
606 | INIT_DELAYED_WORK(&q->delay_work, blk_delay_work); | 603 | INIT_DELAYED_WORK(&q->delay_work, blk_delay_work); |
607 | 604 | ||
608 | kobject_init(&q->kobj, &blk_queue_ktype); | 605 | kobject_init(&q->kobj, &blk_queue_ktype); |
diff --git a/block/blk-flush.c b/block/blk-flush.c index c72ab32fd8eb..a49ffbdcfcdc 100644 --- a/block/blk-flush.c +++ b/block/blk-flush.c | |||
@@ -488,6 +488,10 @@ static int blk_mq_init_flush(struct request_queue *q) | |||
488 | 488 | ||
489 | int blk_init_flush(struct request_queue *q) | 489 | int blk_init_flush(struct request_queue *q) |
490 | { | 490 | { |
491 | INIT_LIST_HEAD(&q->flush_queue[0]); | ||
492 | INIT_LIST_HEAD(&q->flush_queue[1]); | ||
493 | INIT_LIST_HEAD(&q->flush_data_in_flight); | ||
494 | |||
491 | if (q->mq_ops) | 495 | if (q->mq_ops) |
492 | return blk_mq_init_flush(q); | 496 | return blk_mq_init_flush(q); |
493 | 497 | ||