Function report |
Source Code:block\blk-mq.c |
Create Date:2022-07-28 17:12:19 |
Last Modify:2020-03-17 23:18:05 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:blk_mq_poll_hybrid_sleep
Proto:static bool blk_mq_poll_hybrid_sleep(struct request_queue *q, struct blk_mq_hw_ctx *hctx, struct request *rq)
Type:bool
Parameter:
Type | Parameter | Name |
---|---|---|
struct request_queue * | q | |
struct blk_mq_hw_ctx * | hctx | |
struct request * | rq |
3384 | If rq_flags & already slept for hybrid poll Then Return false |
3395 | Else nsecs = blk_mq_poll_nsecs(q, hctx, rq) |
3398 | If Not nsecs Then Return false |
3410 | hrtimer_init_sleeper_on_stack( & hs, CLOCK_MONOTONIC, mode) |
3411 | hrtimer_set_expires( & timer, kt) |
3413 | Do |
3414 | If lk_mq_rq_state() - read the current MQ_RQ_* state of a request*@rq: target request. == MQ_RQ_COMPLETE Then Break |
3418 | If task Then io_schedule() |
3421 | mode = Time value is absolute |
3422 | When task && Not signal_pending(current process) cycle |
3425 | destroy_hrtimer_on_stack( & timer) |
3426 | Return true |
Name | Describe |
---|---|
blk_mq_poll_hybrid |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |