diff options
author | blueness <basile@opensource.dyc.edu> | 2015-09-11 14:45:41 -0400 |
---|---|---|
committer | blueness <basile@opensource.dyc.edu> | 2015-09-11 14:45:41 -0400 |
commit | 696a663370ad1240d1393a1c217898ea74143d90 (patch) | |
tree | 05dea233d2340d7e72a0f077f7d2c37acc5d4153 /rules | |
parent | 0cc8789c71ec4c5d359fb84861a10de6e863ae13 (diff) | |
parent | b38f3aaba153414eb357dce18611772d2cffa1f6 (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.rules | 3 |
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" |