Skip to content

Commit

Permalink
block: remove extra calls to wbt_exit()
Browse files Browse the repository at this point in the history
We always call wbt_exit() from blk_release_queue(), so these are
unnecessary.

Signed-off-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
  • Loading branch information
Omar Sandoval authored and Jens Axboe committed Mar 21, 2017
1 parent 7d8d001 commit 0315b15
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion block/blk-core.c
Original file line number Diff line number Diff line change
@@ -889,7 +889,6 @@ int blk_init_allocated_queue(struct request_queue *q)
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);
2 changes: 0 additions & 2 deletions block/blk-mq.c
Original file line number Diff line number Diff line change
@@ -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);

0 comments on commit 0315b15

Please sign in to comment.