Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\mq-deadline.c Create Date:2022-07-28 17:50:22
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 arrival ordered lists.

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

Type:struct request

Parameter:

TypeParameterName
struct deadline_data *dd
intdata_dir
206  If WARN_ON_ONCE(data_dir != generic data direction definitions && data_dir != WRITE) Then Return NULL
209  If list_empty - tests whether a list is empty*@head: the list to test. Then Return NULL
212  rq = rq_entry_fifo(next)
213  If data_dir == generic data direction definitions || Not blk_queue_is_zoned(q) Then Return rq
220  spin_lock_irqsave( & zone_lock, flags)
222  If blk_req_can_dispatch_to_zone(rq) Then Go to out
225  rq = NULL
226  out :
227  spin_unlock_irqrestore( & zone_lock, flags)
229  Return rq
Caller
NameDescribe
__dd_dispatch_requestdeadline_dispatch_requests selects the best request according to* read/write expire, fifo_batch, etc