Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:add rq to rbtree and fifo

Proto:static void dd_insert_request(struct blk_mq_hw_ctx *hctx, struct request *rq, bool at_head)

Type:void

Parameter:

TypeParameterName
struct blk_mq_hw_ctx *hctx
struct request *rq
boolat_head
486  q = @queue: Pointer to the request queue that owns this hardware context.
487  dd = elevator_data
488  data_dir = rq_data_dir(rq)
494  blk_req_zone_write_unlock(rq)
496  If blk_mq_sched_try_insert_merge(q, rq) Then Return
499  blk_mq_sched_request_inserted(rq)
501  If at_head || blk_rq_is_passthrough(rq) Then
502  If at_head Then list_add - add a new entry*@new: new entry to be added*@head: list head to add it after* Insert a new entry after the specified head.* This is good for implementing stacks.
504  Else list_add_tail - add a new entry*@new: new entry to be added*@head: list head to add it before* Insert a new entry before the specified head.* This is useful for implementing queues.
506  Else
507  deadline_add_rq_rb(dd, rq)
509  If rq_mergeable(rq) Then
510  elv_rqhash_add(q, rq)
511  If Not last_merge Then last_merge = rq
518  fifo_time = jiffies + * settings that change how the i/o scheduler behaves[data_dir]
519  list_add_tail - add a new entry*@new: new entry to be added*@head: list head to add it before* Insert a new entry before the specified head.* This is useful for implementing queues.
Caller
NameDescribe
dd_insert_requests