函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\elevator.c Create Date:2022-07-27 18:33:19
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:switch to new_e io scheduler. be careful not to introduce deadlocks -* we don't free the old io scheduler, before we have allocated what we* need for the new one. this way we have a chance of going back to the old

函数原型:static int elevator_switch(struct request_queue *q, struct elevator_type *new_e)

返回类型:int

参数:

类型参数名称
struct request_queue *q
struct elevator_type *new_e
714  lockdep_assert_held( & sysfs_lock)
716  blk_mq_freeze_queue(q)
717  blk_mq_quiesce_queue(q)
719  err等于elevator_switch_mq(q, new_e)
721  blk_mq_unquiesce_queue(q)
722  blk_mq_unfreeze_queue(q)
724  返回:err
调用者
名称描述
__elevator_changeSwitch this queue to the given IO scheduler.