Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:kyber_dispatch_request

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

Type:struct request

Parameter:

TypeParameterName
struct blk_mq_hw_ctx *hctx
801  kqd = elevator_data
802  khd = @sched_data: Pointer owned by the IO scheduler attached to a request* queue. It's up to the IO scheduler how to use this pointer.
806  spin_lock( & lock)
812  If batching < Batch size (number of requests we'll dispatch in a row) for each scheduling* domain.[cur_domain] Then
813  rq = kyber_dispatch_cur_domain(kqd, khd, hctx)
814  If rq Then Go to out
827  batching = 0
828  When i < KYBER_NUM_DOMAINS cycle
829  If cur_domain == KYBER_NUM_DOMAINS - 1 Then cur_domain = 0
831  Else cur_domain++
834  rq = kyber_dispatch_cur_domain(kqd, khd, hctx)
835  If rq Then Go to out
839  rq = NULL
840  out :
841  spin_unlock( & lock)
842  Return rq