[bionic/linux-azure,1/1] UBUNTU: [Config] linux-azure: Enable all IO schedulers as modules

Message ID 20190204014750.16124-2-marcelo.cerri@canonical.com
State New
Headers show
Series
  • Allow I/O schedulers to be loaded with modprobe in linux-azure
Related show

Commit Message

Marcelo Henrique Cerri Feb. 4, 2019, 1:47 a.m.
BugLink: http://bugs.launchpad.net/bugs/1813211

Build all missing IO schedulers as modules and keep them in the main
modules package.

Signed-off-by: Marcelo Henrique Cerri <marcelo.cerri@canonical.com>
---
 debian.azure/config/annotations             | 26 ++++++++++++++-------
 debian.azure/config/config.common.ubuntu    |  5 ++--
 debian.azure/control.d/azure.inclusion-list |  5 ++++
 3 files changed, 25 insertions(+), 11 deletions(-)

Patch

diff --git a/debian.azure/config/annotations b/debian.azure/config/annotations
index 532083c33877..053ec8b17ac1 100644
--- a/debian.azure/config/annotations
+++ b/debian.azure/config/annotations
@@ -8629,15 +8629,23 @@  CONFIG_BLK_SED_OPAL                             policy<{'amd64': 'y', 'arm64': '
 CONFIG_BLK_DEV_THROTTLING                       note<CGROUP disk consumption control>
 
 # Menu: Enable the block layer >> IO Schedulers
-CONFIG_IOSCHED_DEADLINE                         policy<{'amd64': 'y', 'arm64': 'y', 'armhf': 'y', 'i386': 'y', 'ppc64el': 'y', 's390x': 'y'}>
-CONFIG_IOSCHED_CFQ                              policy<{'amd64': 'y', 'arm64': 'y', 'armhf': 'y', 'i386': 'y', 'ppc64el': 'y', 's390x': 'y'}>
-CONFIG_CFQ_GROUP_IOSCHED                        policy<{'amd64': 'y', 'arm64': 'y', 'armhf': 'y', 'i386': 'y', 'ppc64el': 'y', 's390x': 'y'}>
-CONFIG_MQ_IOSCHED_DEADLINE                      policy<{'amd64': 'm', 'arm64': 'm', 'armhf': 'm', 'i386': 'm', 'ppc64el': 'm', 's390x': 'm'}>
-CONFIG_MQ_IOSCHED_KYBER                         policy<{'amd64': 'm', 'arm64': 'm', 'armhf': 'm', 'i386': 'm', 'ppc64el': 'm', 's390x': 'm'}>
-CONFIG_IOSCHED_BFQ                              policy<{'amd64': 'm', 'arm64': 'm', 'armhf': 'm', 'i386': 'm', 'ppc64el': 'm', 's390x': 'm'}>
-CONFIG_BFQ_GROUP_IOSCHED                        policy<{'amd64': 'y', 'arm64': 'y', 'armhf': 'y', 'i386': 'y', 'ppc64el': 'y', 's390x': 'y'}>
-#
-CONFIG_MQ_IOSCHED_DEADLINE                      flag<REVIEW>
+CONFIG_IOSCHED_NOOP                             policy<{'amd64': 'y'}>
+CONFIG_IOSCHED_DEADLINE                         policy<{'amd64': 'm'}>
+CONFIG_IOSCHED_CFQ                              policy<{'amd64': 'm'}>
+CONFIG_CFQ_GROUP_IOSCHED                        policy<{'amd64': 'y'}>
+CONFIG_MQ_IOSCHED_DEADLINE                      policy<{'amd64': 'm'}>
+CONFIG_MQ_IOSCHED_KYBER                         policy<{'amd64': 'm'}>
+CONFIG_IOSCHED_BFQ                              policy<{'amd64': 'm'}>
+CONFIG_BFQ_GROUP_IOSCHED                        policy<{'amd64': 'y'}>
+#
+CONFIG_IOSCHED_NOOP                             mark<ENFORCED> note<LP#1813211>
+CONFIG_IOSCHED_DEADLINE                         mark<ENFORCED> note<LP#1813211>
+CONFIG_IOSCHED_CFQ                              mark<ENFORCED> note<LP#1813211>
+CONFIG_CFQ_GROUP_IOSCHED                        mark<ENFORCED> note<LP#1813211>
+CONFIG_MQ_IOSCHED_DEADLINE                      mark<ENFORCED> note<LP#1813211>
+CONFIG_MQ_IOSCHED_KYBER                         mark<ENFORCED> note<LP#1813211>
+CONFIG_IOSCHED_BFQ                              mark<ENFORCED> note<LP#1813211>
+CONFIG_BFQ_GROUP_IOSCHED                        mark<ENFORCED> note<LP#1813211>
 
 # Menu: Enable the block layer >> IO Schedulers >> Default I/O scheduler
 CONFIG_DEFAULT_DEADLINE                         policy<{'amd64': 'n', 'arm64': 'n', 'armhf': 'n', 'i386': 'n', 'ppc64el': 'n', 's390x': 'n'}>
diff --git a/debian.azure/config/config.common.ubuntu b/debian.azure/config/config.common.ubuntu
index 77d1e179609e..e07cb60e62a4 100644
--- a/debian.azure/config/config.common.ubuntu
+++ b/debian.azure/config/config.common.ubuntu
@@ -604,6 +604,7 @@  CONFIG_CFG80211_DEFAULT_PS=y
 CONFIG_CFG80211_REQUIRE_SIGNED_REGDB=y
 CONFIG_CFG80211_USE_KERNEL_REGDB_KEYS=y
 CONFIG_CFG80211_WEXT=y
+CONFIG_CFQ_GROUP_IOSCHED=y
 CONFIG_CFS_BANDWIDTH=y
 CONFIG_CGROUPS=y
 CONFIG_CGROUP_BPF=y
@@ -2094,8 +2095,8 @@  CONFIG_IOMMU_IOVA=y
 # CONFIG_IOMMU_STRESS is not set
 CONFIG_IOMMU_SUPPORT=y
 CONFIG_IOSCHED_BFQ=m
-# CONFIG_IOSCHED_CFQ is not set
-# CONFIG_IOSCHED_DEADLINE is not set
+CONFIG_IOSCHED_CFQ=m
+CONFIG_IOSCHED_DEADLINE=m
 CONFIG_IOSCHED_NOOP=y
 CONFIG_IOSF_MBI=y
 CONFIG_IOSF_MBI_DEBUG=y
diff --git a/debian.azure/control.d/azure.inclusion-list b/debian.azure/control.d/azure.inclusion-list
index f98ef5e2999f..02cea0af622b 100644
--- a/debian.azure/control.d/azure.inclusion-list
+++ b/debian.azure/control.d/azure.inclusion-list
@@ -7,6 +7,11 @@  arch/powerpc/platforms/powernv/opal-prd.ko
 arch/s390/*
 arch/x86/kvm/kvm-amd.ko
 arch/x86/kvm/kvm-intel.ko
+block/bfq.ko
+block/cfq-iosched.ko
+block/deadline-iosched.ko
+block/kyber-iosched.ko
+block/mq-deadline.ko
 crypto/*
 drivers/acpi/*
 drivers/ata/acard-ahci.ko