函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:For the specified data direction, return the next request to* dispatch using arrival ordered lists.

函数原型:static struct request *deadline_fifo_request(struct deadline_data *dd, int data_dir)

返回类型:struct request

参数:

类型参数名称
struct deadline_data *dd
intdata_dir
206  如果WARN_ON_ONCE(data_dir != generic data direction definitions && data_dir != WRITE)则返回:NULL
209  如果链表为空则返回:NULL
212  rq等于rq_entry_fifo(链表后项)
213  如果data_dir恒等于generic data direction definitions 或非blk_queue_is_zoned(q)则返回:rq
220  spin_lock_irqsave( & zone_lock, flags)
222  如果blk_req_can_dispatch_to_zone(rq)则转到:out
225  rq = NULL
226  out :
227  spin_unlock_irqrestore( & zone_lock, flags)
229  返回:rq
调用者
名称描述
__dd_dispatch_requestdeadline_dispatch_requests selects the best request according to* read/write expire, fifo_batch, etc