Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-mq-tag.c Create Date:2022-07-28 17:13:06
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:blk_mq_tag_update_depth

Proto:int blk_mq_tag_update_depth(struct blk_mq_hw_ctx *hctx, struct blk_mq_tags **tagsptr, unsigned int tdepth, bool can_grow)

Type:int

Parameter:

TypeParameterName
struct blk_mq_hw_ctx *hctx
struct blk_mq_tags **tagsptr
unsigned inttdepth
boolcan_grow
487  tags = tagsptr
489  If tdepth <= nr_reserved_tags Then Return -EINVAL
496  If tdepth > nr_tags Then
497  set = tag_set
501  If Not can_grow Then Return -EINVAL
508  If tdepth > 16 * Default maximum Then Return -EINVAL
511  new = blk_mq_alloc_rq_map(set, @queue_num: Index of this hardware queue. , tdepth, nr_reserved_tags)
513  If Not new Then Return -ENOMEM
515  ret = blk_mq_alloc_rqs(set, new, @queue_num: Index of this hardware queue. , tdepth)
516  If ret Then
518  Return -ENOMEM
521  blk_mq_free_rqs(set, * tagsptr, @queue_num: Index of this hardware queue. )
522  blk_mq_free_rq_map( * tagsptr)
523  tagsptr = new
524  Else
529  sbitmap_queue_resize( & bitmap_tags, tdepth - nr_reserved_tags)
533  Return 0
Caller
NameDescribe
blk_mq_update_nr_requests