diff options
author | Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com> | 2018-08-16 18:45:29 -0400 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-08-17 14:33:36 -0400 |
commit | fcedba42d94ecdc14ca13d3797cba1ccbf743fa4 (patch) | |
tree | 65c3091289ed5cfcd82a415e2c5762242a7cddb8 | |
parent | 757d9140072054528b13bbe291583d9823cde195 (diff) |
block: remove duplicate initialization
This patch removes the duplicate initialization of q->queue_head
in the blk_alloc_queue_node(). This removes the 2nd initialization
so that we preserve the initialization order same as declaration
present in struct request_queue.
Reviewed-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r-- | block/blk-core.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/block/blk-core.c b/block/blk-core.c index 7aeef19704f2..5832c4003cfb 100644 --- a/block/blk-core.c +++ b/block/blk-core.c | |||
@@ -1036,7 +1036,6 @@ struct request_queue *blk_alloc_queue_node(gfp_t gfp_mask, int node_id, | |||
1036 | laptop_mode_timer_fn, 0); | 1036 | laptop_mode_timer_fn, 0); |
1037 | timer_setup(&q->timeout, blk_rq_timed_out_timer, 0); | 1037 | timer_setup(&q->timeout, blk_rq_timed_out_timer, 0); |
1038 | INIT_WORK(&q->timeout_work, NULL); | 1038 | INIT_WORK(&q->timeout_work, NULL); |
1039 | INIT_LIST_HEAD(&q->queue_head); | ||
1040 | INIT_LIST_HEAD(&q->timeout_list); | 1039 | INIT_LIST_HEAD(&q->timeout_list); |
1041 | INIT_LIST_HEAD(&q->icq_list); | 1040 | INIT_LIST_HEAD(&q->icq_list); |
1042 | #ifdef CONFIG_BLK_CGROUP | 1041 | #ifdef CONFIG_BLK_CGROUP |