Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Cache the elevator_type in qe pair list and switch the* io scheduler to 'none'

Proto:static bool blk_mq_elv_switch_none(struct list_head *head, struct request_queue *q)

Type:bool

Parameter:

TypeParameterName
struct list_head *head
struct request_queue *q
3186  If Not elevator Then Return true
3189  qe = Allocation memory
3190  If Not qe Then Return false
3193  Initialization list head
3194  q = q
3195  type = type
3196  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.
3198  mutex_lock( & sysfs_lock)
3206  __module_get(elevator_owner)
3207  elevator_switch_mq(q, NULL)
3208  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
3210  Return true
Caller
NameDescribe
__blk_mq_update_nr_hw_queues