Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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

Proto:static int elevator_switch(struct request_queue *q, struct elevator_type *new_e)

Type:int

Parameter:

TypeParameterName
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  Return err
Caller
NameDescribe
__elevator_changeSwitch this queue to the given IO scheduler.