Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-mq.c Create Date:2022-07-28 17:09:02
Last Modify:2020-03-17 23:18:05 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:blk_mq_start_request

Proto:void blk_mq_start_request(struct request *rq)

Type:void

Parameter:

TypeParameterName
struct request *rq
646  q = q
648  lock_rq_issue - issue pending block IO request operation to device driver*@q: queue holding operation*@rq: block IO operation operation request* Called when block operation request @rq from queue @q is sent to a* device driver for processing.
650  If Determine whether a bit is set(rack IO start and completion times , & * various queue flags, see QUEUE_* below) Then
651  Time that I/O was submitted to the device. = ktime_get_ns()
652  * rq sectors used for blk stats. It has the same value * with blk_rq_sectors(rq), except that it never be zeroed * by completion. = blk_rq_sectors(rq)
653  rq_flags |= rack IO completion time
654  rq_qos_issue(q, rq)
657  WARN_ON_ONCE(lk_mq_rq_state() - read the current MQ_RQ_* state of a request*@rq: target request. != MQ_RQ_IDLE)
659  lk_add_timer - Start timeout timer for a single request*@req: request that is about to start running.* Notes:* Each request has its own timer, and as it is added to the queue, we* set up the timer. When the request completes, we cancel the timer.
660  WRITE_ONCE(state, MQ_RQ_IN_FLIGHT)
662  If dma_drain_size && blk_rq_bytes(rq) Then
668  * Number of scatter-gather DMA addr+len pairs after * physical address coalescing is performed.++
672  If blk_integrity_rq(rq) && req_op(rq) == REQ_OP_WRITE Then prepare_fn(rq)
Caller
NameDescribe
bsg_queue_rqsg_queue_rq - generic handler for bsg requests*@hctx: hardware queue*@bd: queue data* On error the create_bsg_job function should return a -Exyz error value* that will be set to ->result.* Drivers/subsys should pass this to the queue init function.