From: Omar Sandoval Date: Tue, 21 Mar 2017 15:56:05 +0000 (-0700) Subject: block: remove extra calls to wbt_exit() X-Git-Tag: v4.14-rc1~1015^2~320 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0315b159085621d2ff72dbf69ca6fb4a5b32bae2;p=platform%2Fkernel%2Flinux-rpi3.git block: remove extra calls to wbt_exit() We always call wbt_exit() from blk_release_queue(), so these are unnecessary. Signed-off-by: Omar Sandoval Signed-off-by: Jens Axboe --- diff --git a/block/blk-core.c b/block/blk-core.c index d772c22..e8a9bc0 100644 --- a/block/blk-core.c +++ b/block/blk-core.c @@ -889,7 +889,6 @@ out_exit_flush_rq: q->exit_rq_fn(q, q->fq->flush_rq); out_free_flush_queue: blk_free_flush_queue(q->fq); - wbt_exit(q); return -ENOMEM; } EXPORT_SYMBOL(blk_init_allocated_queue); diff --git a/block/blk-mq.c b/block/blk-mq.c index a4546f0..534f49a 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -2431,8 +2431,6 @@ void blk_mq_free_queue(struct request_queue *q) list_del_init(&q->all_q_node); mutex_unlock(&all_q_mutex); - wbt_exit(q); - blk_mq_del_queue_tag_set(q); blk_mq_exit_hw_queues(q, set, set->nr_hw_queues);