Try setting the I/O scheduler to noop/none regardless of support

Some devices don't return a proper cat of scheduler.

Signed-off-by: tytydraco <tylernij@gmail.com>
This commit is contained in:
tytydraco 2020-08-02 05:53:53 -07:00
parent 17f61e78be
commit 46a2c56a89

View File

@ -175,10 +175,8 @@ do
write "${queue}iostats" 0
write "${queue}read_ahead_kb" 0
write "${queue}nr_requests" 512
avail_scheds=`cat "${queue}scheduler"`
[[ "$avail_scheds" == *"noop"* ]] && write "${queue}scheduler" noop
[[ "$avail_scheds" == *"none"* ]] && write "${queue}scheduler" none
write "${queue}scheduler" noop
write "${queue}scheduler" none
done
# ZRAM