[SRU][I/raspi][H/raspi][F/raspi][PATCH 1/1] UBUNTU: [Config] raspi: Set BLK_DEV_LOOP_MIN_COUNT=8

Juerg Haefliger juerg.haefliger at canonical.com
Wed Dec 15 15:32:52 UTC 2021


Buglink: https://bugs.launchpad.net/bugs/1948807

This config was set to 256 in Artful raspi for no apparent reason which
means that the kernel creates 256 loop devices at boot. A recent security
fix [1] introduced a slight delay when loop devices are created which in
turn results in a ~3.5 seconds boot delay of the raspi kernel. Fix that by
setting the config back to 8 (the default), which also matches all the
other Ubuntu kernels.

Verfied that core 18 and 20 create additional loop devices as needed to
mount snaps.

[1] 2cafe29a8d03 ("block: fix race between adding/removing rq qos and normal IO")

Signed-off-by: Juerg Haefliger <juergh at canonical.com>
---
 debian.raspi/config/config.common.ubuntu | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian.raspi/config/config.common.ubuntu b/debian.raspi/config/config.common.ubuntu
index 13b3d70468d7..dd2d5cde2a11 100644
--- a/debian.raspi/config/config.common.ubuntu
+++ b/debian.raspi/config/config.common.ubuntu
@@ -783,7 +783,7 @@ CONFIG_BLK_DEV_INITRD=y
 CONFIG_BLK_DEV_INTEGRITY=y
 CONFIG_BLK_DEV_IO_TRACE=y
 CONFIG_BLK_DEV_LOOP=y
-CONFIG_BLK_DEV_LOOP_MIN_COUNT=256
+CONFIG_BLK_DEV_LOOP_MIN_COUNT=8
 CONFIG_BLK_DEV_MD=y
 CONFIG_BLK_DEV_NBD=m
 CONFIG_BLK_DEV_NULL_BLK=m
-- 
2.30.2




More information about the kernel-team mailing list