Function report |
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 activity | Download SCCT | Chinese |
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:
| Type | Parameter | Name |
|---|---|---|
| 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 |
| Name | Describe |
|---|---|
| __elevator_change | Switch this queue to the given IO scheduler. |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |