SHA256
1
0
forked from pool/systemd

Accepting request 261364 from home:rmilasan:branches:Base:System

- Create rule to set I/O scheduler to deadline if device attribute 
  'rotational' equals 0, usually SSDs (bnc#904517).
  Add 1095-set-ssd-disk-to-use-deadline-scheduler.patch

- Create rule to set I/O scheduler to deadline if device attribute 
  'rotational' equals 0, usually SSDs (bnc#904517).
  Add 1095-set-ssd-disk-to-use-deadline-scheduler.patch

OBS-URL: https://build.opensuse.org/request/show/261364
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=813
This commit is contained in:
Robert Milasan 2014-11-13 10:20:35 +00:00 committed by Git OBS Bridge
parent c8509999d2
commit ed7abf1967
5 changed files with 48 additions and 0 deletions

View File

@ -0,0 +1,28 @@
Index: systemd-210/Makefile.am
===================================================================
--- systemd-210.orig/Makefile.am
+++ systemd-210/Makefile.am
@@ -2546,6 +2546,7 @@ dist_udevrules_DATA += \
rules/60-persistent-input.rules \
rules/60-persistent-alsa.rules \
rules/60-persistent-storage.rules \
+ rules/60-ssd-scheduler.rules \
rules/64-btrfs.rules \
rules/75-net-description.rules \
rules/75-tty-description.rules \
Index: systemd-210/rules/60-ssd-scheduler.rules
===================================================================
--- /dev/null
+++ systemd-210/rules/60-ssd-scheduler.rules
@@ -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"

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Nov 13 09:54:35 UTC 2014 - rmilasan@suse.com
- Create rule to set I/O scheduler to deadline if device attribute
'rotational' equals 0, usually SSDs (bnc#904517).
Add 1095-set-ssd-disk-to-use-deadline-scheduler.patch
-------------------------------------------------------------------
Mon Nov 10 12:39:35 UTC 2014 - werner@suse.de

View File

@ -1223,6 +1223,8 @@ Patch1092: 1092-libudev-do-not-accept-invalid-log-levels.patch
Patch1093: 1093-udev-Fix-parsing-of-udev.event-timeout-kernel-parame.patch
# PATCH-FIX-UPSTREAM 1094-udev-avoid-magic-constants-in-kernel-cmdline-parsers.patch
Patch1094: 1094-udev-avoid-magic-constants-in-kernel-cmdline-parsers.patch
# PATCH-FIX-SUSE 1095-set-ssd-disk-to-use-deadline-scheduler.patch (bnc#904517)
Patch1095: 1095-set-ssd-disk-to-use-deadline-scheduler.patch
%description
Systemd is a system and service manager, compatible with SysV and LSB
@ -2014,6 +2016,7 @@ cp %{SOURCE7} m4/
%patch1092 -p0
%patch1093 -p0
%patch1094 -p0
%patch1095 -p1
# remove patch backups
find -name '*.orig' -exec rm -f '{}' \+

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Nov 13 09:54:35 UTC 2014 - rmilasan@suse.com
- Create rule to set I/O scheduler to deadline if device attribute
'rotational' equals 0, usually SSDs (bnc#904517).
Add 1095-set-ssd-disk-to-use-deadline-scheduler.patch
-------------------------------------------------------------------
Mon Nov 10 12:39:35 UTC 2014 - werner@suse.de

View File

@ -1218,6 +1218,8 @@ Patch1092: 1092-libudev-do-not-accept-invalid-log-levels.patch
Patch1093: 1093-udev-Fix-parsing-of-udev.event-timeout-kernel-parame.patch
# PATCH-FIX-UPSTREAM 1094-udev-avoid-magic-constants-in-kernel-cmdline-parsers.patch
Patch1094: 1094-udev-avoid-magic-constants-in-kernel-cmdline-parsers.patch
# PATCH-FIX-SUSE 1095-set-ssd-disk-to-use-deadline-scheduler.patch (bnc#904517)
Patch1095: 1095-set-ssd-disk-to-use-deadline-scheduler.patch
%description
Systemd is a system and service manager, compatible with SysV and LSB
@ -2009,6 +2011,7 @@ cp %{SOURCE7} m4/
%patch1092 -p0
%patch1093 -p0
%patch1094 -p0
%patch1095 -p1
# remove patch backups
find -name '*.orig' -exec rm -f '{}' \+