summaryrefslogtreecommitdiff
path: root/block/elevator.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2018-05-31 19:11:36 +0200
committerJens Axboe <axboe@kernel.dk>2018-06-01 07:38:14 -0600
commitcbf62af3537a5a735594983a87112a8cd08480a3 (patch)
tree57c60e2d7c8c2c853261cbacfcc45d8369663826 /block/elevator.c
parentf6c3ca0e58446e8de6c6f1a2a73f037fb900c372 (diff)
downloadlinux-rpi-cbf62af3537a5a735594983a87112a8cd08480a3.tar.gz
linux-rpi-cbf62af3537a5a735594983a87112a8cd08480a3.tar.bz2
linux-rpi-cbf62af3537a5a735594983a87112a8cd08480a3.zip
block: move initialization of elevator-related fields to blk_alloc_queue_node
No point in doing this in elevator_init. Signed-off-by: Christoph Hellwig <hch@lst.de> Reported-by: Damien Le Moal <Damien.LeMoal@wdc.com> Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com> Tested-by: Damien Le Moal <damien.lemoal@wdc.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/elevator.c')
-rw-r--r--block/elevator.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/block/elevator.c b/block/elevator.c
index e87e9b43aba0..8b64f92e029a 100644
--- a/block/elevator.c
+++ b/block/elevator.c
@@ -213,11 +213,6 @@ int elevator_init(struct request_queue *q, char *name)
if (unlikely(q->elevator))
return 0;
- INIT_LIST_HEAD(&q->queue_head);
- q->last_merge = NULL;
- q->end_sector = 0;
- q->boundary_rq = NULL;
-
if (name) {
e = elevator_get(q, name, true);
if (!e)