函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\bfq-iosched.c Create Date:2022-07-27 19:33:11
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:bfq_insert_request

函数原型:static void bfq_insert_request(struct blk_mq_hw_ctx *hctx, struct request *rq, bool at_head)

返回类型:void

参数:

类型参数名称
struct blk_mq_hw_ctx *hctx
struct request *rq
boolat_head
5493  q等于@queue: Pointer to the request queue that owns this hardware context.
5494  bfqd等于elevator_data
5496  bool idle_timer_disabled = false
5503  spin_lock_irq( & lock)
5504  如果blk_mq_sched_try_insert_merge(q, rq)则
5505  spin_unlock_irq( & lock)
5506  返回
5509  spin_unlock_irq( & lock)
5511  blk_mq_sched_request_inserted(rq)
5513  spin_lock_irq( & lock)
5514  bfqq等于bfq_init_rq(rq)
5515  如果非bfqqat_headblk_rq_is_passthrough(rq)则
5516  如果at_head添加链表项
5518  否则添加链表项
5520  否则
5521  idle_timer_disabled等于rns true if it causes the idle timer to be disabled
5527  bfqq等于RQ_BFQQ(rq)
5529  如果rq_mergeable(rq)则
5530  elv_rqhash_add(q, rq)
5531  如果非last_mergelast_merge等于rq
5541  cmd_flags等于 op and common flags
5543  spin_unlock_irq( & lock)
5545  bfq_update_insert_stats(q, bfqq, idle_timer_disabled, cmd_flags)
调用者
名称描述
bfq_insert_requests