Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:For a device queue that has no required features, use the default elevator* settings. Otherwise, use the first elevator available matching the required* features. If no suitable elevator is find or if the chosen elevator

Proto:void elevator_init_mq(struct request_queue *q)

Type:void

Parameter:

TypeParameterName
struct request_queue *q
673  If Not elv_support_iosched(q) Then Return
676  WARN_ON_ONCE(st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from)
678  If Value for the false possibility is greater at compile time(elevator) Then Return
681  If Not required_elevator_features Then e = For single queue devices, default to using mq-deadline. If we have multiple* queues or mq-deadline is not available, default to "none".
683  Else e = Get the first elevator providing the features required by the request queue.* Default to "none" if no matching elevator is found.
685  If Not e Then Return
688  blk_mq_freeze_queue(q)
689  blk_mq_quiesce_queue(q)
691  err = blk_mq_init_sched(q, e)
693  blk_mq_unquiesce_queue(q)
694  blk_mq_unfreeze_queue(q)
696  If err Then
697  pr_warn("\"%s\" elevator initialization failed, falling back to \"none\"\n", elevator_name)
699  elevator_put(e)
Caller
NameDescribe
blk_mq_init_allocated_queue
__device_add_disk__device_add_disk - add disk information to kernel list*@parent: parent device for the disk*@disk: per-device partitioning information*@groups: Additional per-device sysfs groups*@register_queue: register the queue if set to true* This function registers