Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

blk-mq: remove blk_mq_tag_update_depth()

This helper is not used now.

Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Reviewed-by: Nilay Shroff <nilay@linux.ibm.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Yu Kuai and committed by
Jens Axboe
97840411 b8643372

-34
-32
block/blk-mq-tag.c
··· 609 609 call_srcu(&set->tags_srcu, &tags->rcu_head, blk_mq_free_tags_callback); 610 610 } 611 611 612 - int blk_mq_tag_update_depth(struct blk_mq_hw_ctx *hctx, 613 - struct blk_mq_tags **tagsptr, unsigned int tdepth) 614 - { 615 - struct blk_mq_tags *tags = *tagsptr; 616 - 617 - /* 618 - * If we are allowed to grow beyond the original size, allocate 619 - * a new set of tags before freeing the old one. 620 - */ 621 - if (tdepth > tags->nr_tags) { 622 - struct blk_mq_tag_set *set = hctx->queue->tag_set; 623 - struct blk_mq_tags *new; 624 - 625 - new = blk_mq_alloc_map_and_rqs(set, hctx->queue_num, tdepth); 626 - if (!new) 627 - return -ENOMEM; 628 - 629 - blk_mq_free_map_and_rqs(set, *tagsptr, hctx->queue_num); 630 - hctx->queue->elevator->et->tags[hctx->queue_num] = new; 631 - *tagsptr = new; 632 - } else { 633 - /* 634 - * Don't need (or can't) update reserved tags here, they 635 - * remain static and should never need resizing. 636 - */ 637 - sbitmap_queue_resize(&tags->bitmap_tags, 638 - tdepth - tags->nr_reserved_tags); 639 - } 640 - 641 - return 0; 642 - } 643 - 644 612 void blk_mq_tag_resize_shared_tags(struct blk_mq_tag_set *set, unsigned int size) 645 613 { 646 614 struct blk_mq_tags *tags = set->shared_tags;
-2
block/blk-mq.h
··· 184 184 void blk_mq_put_tag(struct blk_mq_tags *tags, struct blk_mq_ctx *ctx, 185 185 unsigned int tag); 186 186 void blk_mq_put_tags(struct blk_mq_tags *tags, int *tag_array, int nr_tags); 187 - int blk_mq_tag_update_depth(struct blk_mq_hw_ctx *hctx, 188 - struct blk_mq_tags **tags, unsigned int depth); 189 187 void blk_mq_tag_resize_shared_tags(struct blk_mq_tag_set *set, 190 188 unsigned int size); 191 189 void blk_mq_tag_update_sched_shared_tags(struct request_queue *q);