Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:bfq_setup_merge

Proto:static struct bfq_queue *bfq_setup_merge(struct bfq_queue *bfqq, struct bfq_queue *new_bfqq)

Type:struct bfq_queue

Parameter:

TypeParameterName
struct bfq_queue *bfqq
struct bfq_queue *new_bfqq
2484  If Not bfqq_process_refs(new_bfqq) Then Return NULL
2488  When __bfqq = Shared bfq_queue if queue is cooperating with one or more* other queues. cycle
2489  If __bfqq == bfqq Then Return NULL
2491  new_bfqq = __bfqq
2494  process_refs = bfqq_process_refs(bfqq)
2495  new_process_refs = bfqq_process_refs(new_bfqq)
2500  If process_refs == 0 || new_process_refs == 0 Then Return NULL
2503  bfq_log_bfqq(parent bfq_data , bfqq, "scheduling merge with queue %d", pid of the process owning the queue, used for logging purposes )
2526  Shared bfq_queue if queue is cooperating with one or more* other queues. = new_bfqq
2527  ce counter += process_refs
2528  Return new_bfqq
Caller
NameDescribe
bfq_setup_cooperatorAttempt to schedule a merge of bfqq with the currently in-service* queue or with a close queue among the scheduled queues