2015-02-16 12:36:25 +01:00
|
|
|
---
|
|
|
|
Makefile.am | 1 +
|
|
|
|
rules/60-ssd-scheduler.rules | 11 +++++++++++
|
|
|
|
2 files changed, 12 insertions(+)
|
|
|
|
|
2015-06-23 14:56:50 +02:00
|
|
|
Index: systemd-221/Makefile.am
|
2014-11-13 11:20:35 +01:00
|
|
|
===================================================================
|
2015-06-23 14:56:50 +02:00
|
|
|
--- systemd-221.orig/Makefile.am
|
|
|
|
+++ systemd-221/Makefile.am
|
|
|
|
@@ -3501,6 +3501,7 @@ dist_udevrules_DATA += \
|
2014-11-13 11:20:35 +01:00
|
|
|
rules/60-persistent-input.rules \
|
|
|
|
rules/60-persistent-alsa.rules \
|
|
|
|
rules/60-persistent-storage.rules \
|
|
|
|
+ rules/60-ssd-scheduler.rules \
|
2015-06-23 14:56:50 +02:00
|
|
|
rules/60-serial.rules \
|
2014-11-13 11:20:35 +01:00
|
|
|
rules/64-btrfs.rules \
|
2015-02-16 12:36:25 +01:00
|
|
|
rules/70-mouse.rules \
|
2015-06-23 14:56:50 +02:00
|
|
|
Index: systemd-221/rules/60-ssd-scheduler.rules
|
2014-11-13 11:20:35 +01:00
|
|
|
===================================================================
|
|
|
|
--- /dev/null
|
2015-06-23 14:56:50 +02:00
|
|
|
+++ systemd-221/rules/60-ssd-scheduler.rules
|
2014-11-13 11:20:35 +01:00
|
|
|
@@ -0,0 +1,11 @@
|
|
|
|
+# do not edit this file, it will be overwritten on update
|
|
|
|
+
|
|
|
|
+ACTION!="add", GOTO="ssd_scheduler_end"
|
|
|
|
+SUBSYSTEM!="block", GOTO="ssd_scheduler_end"
|
|
|
|
+
|
|
|
|
+IMPORT{cmdline}="elevator"
|
|
|
|
+ENV{elevator}=="*?", GOTO="ssd_scheduler_end"
|
|
|
|
+
|
|
|
|
+KERNEL=="sd*[!0-9]", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="deadline"
|
|
|
|
+
|
|
|
|
+LABEL="ssd_scheduler_end"
|