summaryrefslogtreecommitdiff
path: root/rules
diff options
context:
space:
mode:
authorblueness <basile@opensource.dyc.edu>2015-09-11 14:45:41 -0400
committerblueness <basile@opensource.dyc.edu>2015-09-11 14:45:41 -0400
commit696a663370ad1240d1393a1c217898ea74143d90 (patch)
tree05dea233d2340d7e72a0f077f7d2c37acc5d4153 /rules
parent0cc8789c71ec4c5d359fb84861a10de6e863ae13 (diff)
parentb38f3aaba153414eb357dce18611772d2cffa1f6 (diff)
Merge pull request #123 from gentoo/nonrot
Solid state drives should use noop IO elevator
Diffstat (limited to 'rules')
-rw-r--r--rules/60-block.rules3
1 files changed, 3 insertions, 0 deletions
diff --git a/rules/60-block.rules b/rules/60-block.rules
index c74caca49f..3d1e1c0207 100644
--- a/rules/60-block.rules
+++ b/rules/60-block.rules
@@ -9,3 +9,6 @@ ACTION=="change", SUBSYSTEM=="scsi", ENV{DEVTYPE}=="scsi_device", TEST=="block",
# watch metadata changes, caused by tools closing the device node which was opened for writing
ACTION!="remove", SUBSYSTEM=="block", KERNEL=="loop*|nvme*|sd*|vd*|xvd*", OPTIONS+="watch"
+
+# set noop on solid state drives
+SUBSYSTEM=="block", ACTION=="add", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="noop"