Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:It is the actual release handler for mq, but we do it from* request queue's release handler for avoiding use-after-free* and headache because q->mq_kobj shouldn't have been introduced,* but we can't group ctx/kctx kobj without it.

Proto:void blk_mq_release(struct request_queue *q)

Type:void

Parameter:

TypeParameterName
struct request_queue *q
2641  queue_for_each_hw_ctx(q, hctx, i)
2642  WARN_ON_ONCE(hctx && list_empty - tests whether a list is empty*@head: the list to test.)
2646  list_del_init - deletes entry from list and reinitialize it.*@entry: the element to delete from the list.
2647  kobject_put() - Decrement refcount for object.*@kobj: object.* Decrement the refcount, and if 0, call kobject_cleanup().
2650  kfree( hw dispatch queues )
2656  blk_mq_sysfs_deinit(q)