Message ID | 20211215153254.174745-3-juergh@canonical.com |
---|---|
State | New |
Headers | show |
Series | [SRU,B/raspi-5.4,1/1] UBUNTU: [Config] raspi-bionic: Set BLK_DEV_LOOP_MIN_COUNT=8 | expand |
diff --git a/debian.raspi-bionic/config/config.common.ubuntu b/debian.raspi-bionic/config/config.common.ubuntu index ac0a1ed642d6..4f1a6050cb7f 100644 --- a/debian.raspi-bionic/config/config.common.ubuntu +++ b/debian.raspi-bionic/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
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@canonical.com> --- debian.raspi-bionic/config/config.common.ubuntu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)