Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:blk_mq_add_to_requeue_list

Proto:void blk_mq_add_to_requeue_list(struct request *rq, bool at_head, bool kick_requeue_list)

Type:void

Parameter:

TypeParameterName
struct request *rq
boolat_head
boolkick_requeue_list
747  q = q
754  BUG_ON(rq_flags & may not be passed by ioscheduler )
756  spin_lock_irqsave( & requeue_lock, flags)
757  If at_head Then
758  rq_flags |= may not be passed by ioscheduler
759  list_add - add a new entry*@new: new entry to be added*@head: list head to add it after* Insert a new entry after the specified head.* This is good for implementing stacks.
760  Else
761  list_add_tail - add a new entry*@new: new entry to be added*@head: list head to add it before* Insert a new entry before the specified head.* This is useful for implementing queues.
763  spin_unlock_irqrestore( & requeue_lock, flags)
765  If kick_requeue_list Then blk_mq_kick_requeue_list(q)
Caller
NameDescribe
blk_mq_requeue_request