Skip to content

Commit fcedba4

Browse files
ChaitanayaKulkarniaxboe
authored andcommitted
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 <[email protected]> Signed-off-by: Chaitanya Kulkarni <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
1 parent 757d914 commit fcedba4

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

block/blk-core.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1036,7 +1036,6 @@ struct request_queue *blk_alloc_queue_node(gfp_t gfp_mask, int node_id,
10361036
laptop_mode_timer_fn, 0);
10371037
timer_setup(&q->timeout, blk_rq_timed_out_timer, 0);
10381038
INIT_WORK(&q->timeout_work, NULL);
1039-
INIT_LIST_HEAD(&q->queue_head);
10401039
INIT_LIST_HEAD(&q->timeout_list);
10411040
INIT_LIST_HEAD(&q->icq_list);
10421041
#ifdef CONFIG_BLK_CGROUP

0 commit comments

Comments
 (0)