Switch to deadline IO scheduler post boot.

The deadline IO scheduler results in lower latency SD, and pulls in
latency outliers (especially when the flash starts getting fragmented).
Switch to deadline post boot.

Test: various workloads, both synthetic (fio) as well as actual
workloads (app launch, ioshark).

Bug: 63630139
Change-Id: I94b90ac09e921fdf01564bd4c6e1a1b809f3f8ec
Signed-off-by: Mohan Srinivasan <srmohan@google.com>
diff --git a/init-common.rc b/init-common.rc
index ca1f526..5ce4f69 100644
--- a/init-common.rc
+++ b/init-common.rc
@@ -15,6 +15,8 @@
     write /sys/block/sda/queue/iostats 1
     write /sys/block/dm-0/queue/read_ahead_kb 512
     write /sys/block/dm-1/queue/read_ahead_kb 512
+    write /sys/block/sda/queue/scheduler deadline
+    write /sys/block/sde/queue/scheduler deadline
 
 on property:sys.boot_completed=1 && property:ro.build.type=user
     write /proc/sys/kernel/modules_disabled 1