函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

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

返回类型:struct request

参数:

类型参数名称
struct deadline_data *dd
intdata_dir
242  如果WARN_ON_ONCE(data_dir != generic data direction definitions && data_dir != WRITE)则返回:NULL
245  rq等于* next in sort order. read, write or both are NULL[data_dir]
246  如果非rq则返回:NULL
249  如果data_dir恒等于generic data direction definitions 或非blk_queue_is_zoned(q)则返回:rq
256  spin_lock_irqsave( & zone_lock, flags)
257 rq循环
258  如果blk_req_can_dispatch_to_zone(rq)则退出
260  rq等于get the request after `rq' in sector-sorted order
262  spin_unlock_irqrestore( & zone_lock, flags)
264  返回:rq
调用者
名称描述
__dd_dispatch_requestdeadline_dispatch_requests selects the best request according to* read/write expire, fifo_batch, etc