aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 c74caca49..3d1e1c020 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"