Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-mq.c Create Date:2022-07-28 17:10:36
Last Modify:2020-03-17 23:18:05 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:blk_mq_free_rqs

Proto:void blk_mq_free_rqs(struct blk_mq_tag_set *set, struct blk_mq_tags *tags, unsigned int hctx_idx)

Type:void

Parameter:

TypeParameterName
struct blk_mq_tag_set *set
struct blk_mq_tags *tags
unsigned inthctx_idx
2020  If rqs && exit_request Then
2023  When i < nr_tags cycle
2024  rq = static_rqs[i]
2026  If Not rq Then Continue
2029  static_rqs[i] = NULL
2033  When Not list_empty - tests whether a list is empty*@head: the list to test. cycle
2034  page = list_first_entry - get the first element from a list*@ptr: the list head to take the element from.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.* Note, that list is expected to be not empty.( & page_list, structpage, lru)
2035  list_del_init - deletes entry from list and reinitialize it.*@entry: the element to delete from the list.
2040  kmemleak_free - unregister a previously registered object*@ptr: pointer to beginning of the object* This function is called from the kernel allocators when an object (memory* block) is freed (kmem_cache_free, kfree, vfree etc.).
2041  __free_pages(page, *@private: Mapping-private opaque data. * Usually used for buffer_heads if PagePrivate. * Used for swp_entry_t if PageSwapCache. * Indicates order in the buddy system if PageBuddy.)
Caller
NameDescribe
blk_mq_alloc_rqs
blk_mq_free_map_and_requests
blk_mq_tag_update_depth
blk_mq_sched_free_tags
blk_mq_sched_free_requestsalled in either blk_queue_cleanup or elevator_switch, tagset* is required for freeing requests