Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:For the specified data direction, return the next request to* dispatch using sector position sorted lists.

Proto:static struct request *deadline_next_request(struct deadline_data *dd, int data_dir)

Type:struct request

Parameter:

TypeParameterName
struct deadline_data *dd
intdata_dir
242  If WARN_ON_ONCE(data_dir != generic data direction definitions && data_dir != WRITE) Then Return NULL
245  rq = * next in sort order. read, write or both are NULL[data_dir]
246  If Not rq Then Return NULL
249  If data_dir == generic data direction definitions || Not blk_queue_is_zoned(q) Then Return rq
256  spin_lock_irqsave( & zone_lock, flags)
257  When rq cycle
258  If blk_req_can_dispatch_to_zone(rq) Then Break
260  rq = get the request after `rq' in sector-sorted order
262  spin_unlock_irqrestore( & zone_lock, flags)
264  Return rq
Caller
NameDescribe
__dd_dispatch_requestdeadline_dispatch_requests selects the best request according to* read/write expire, fifo_batch, etc