Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:blk_mq_elv_switch_back

Proto:static void blk_mq_elv_switch_back(struct list_head *head, struct request_queue *q)

Type:void

Parameter:

TypeParameterName
struct list_head *head
struct request_queue *q
3217  struct elevator_type * t = NULL
3219  list_for_each_entry - iterate over list of given type*@pos: the type * to use as a loop cursor.*@head: the head for your list.*@member: the name of the list_head within the struct.(qe, head, node)
3220  If q == q Then
3221  t = type
3222  Break
3225  If Not t Then Return
3228  deletes entry from list
3229  kfree(qe)
3231  mutex_lock( & sysfs_lock)
3232  elevator_switch_mq(q, t)
3233  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.
Caller
NameDescribe
__blk_mq_update_nr_hw_queues