-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rules: add elevator= kernel command line parameter
Kernel removed the elevator= option, so let's reintroduce it for rhel8 via udev rule. RHEL-only: feature Related: RHEL-40924
- Loading branch information
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# We aren't adding devices skip the elevator check | ||
ACTION!="add", GOTO="sched_out" | ||
|
||
SUBSYSTEM!="block", GOTO="sched_out" | ||
ENV{DEVTYPE}!="disk", GOTO="sched_out" | ||
|
||
# Technically, dm-multipath can be configured to use an I/O scheduler. | ||
# However, there are races between the 'add' uevent and the linking in | ||
# of the queue/scheduler sysfs file. For now, just skip dm- devices. | ||
KERNEL=="dm-*|md*", GOTO="sched_out" | ||
|
||
# Skip bio-based devices, which don't support an I/O scheduler. | ||
ATTR{queue/scheduler}=="none", GOTO="sched_out" | ||
|
||
# If elevator= is specified on the kernel command line, change the | ||
# scheduler to the one specified. | ||
IMPORT{cmdline}="elevator" | ||
ENV{elevator}!="", ATTR{queue/scheduler}="$env{elevator}" | ||
|
||
LABEL="sched_out" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters