Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:One confusing aspect here is that we get called for a specific* hardware queue, but we may return a request that is for a* different hardware queue. This is because mq-deadline has shared* state for all hardware queues, in terms of sorting, FIFOs, etc.

Proto:static struct request *dd_dispatch_request(struct blk_mq_hw_ctx *hctx)

Type:struct request

Parameter:

TypeParameterName
struct blk_mq_hw_ctx *hctx
383  dd = elevator_data
386  spin_lock( & lock)
387  rq = deadline_dispatch_requests selects the best request according to* read/write expire, fifo_batch, etc
388  spin_unlock( & lock)
390  Return rq