Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp348067pxf; Thu, 11 Mar 2021 05:30:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJxe4uYYZiieF5EvqFQCDnua2vmfTqH218Ue19xJqMB+tVOI78YS/eICg9w+NP8MuYFRwTdx X-Received: by 2002:a17:906:5498:: with SMTP id r24mr3149638ejo.29.1615469444140; Thu, 11 Mar 2021 05:30:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615469444; cv=none; d=google.com; s=arc-20160816; b=RyqvSg4gZDI1A658ezLngjAaAzJvMxXVMK4AEyJkZR61dldsOwijbiRQ6mdhLjLeKX Viq33TJKYlYmWQeAjTMIJchoER6s+6hdT2aoxwUQwu5JSX55kjv+GCpWZF/wJBWqjV1w MLvVoAAUhCZDkA4pBcBgRQwBqw0jVDbTEfoGakHIs+t+3g5zd9t7KbKA+gJgu81DbWFJ koKF+oSr0nMV0sbUZgsYdubL0qjPAyP6soeAvp+x4ezBS97myPxE64pBAGx2YNx4ZNcG vYT8GHdsdnT6vcP9eEI7/hZ8rK1KnO5bJTU9oUsAzeCr+kOITh0c09QeFtXh2y9nMdqB 0qTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=W5NWfVys3KLJrGONFLWQnhsx9yWRyW+yAlxtZ5I/LII=; b=Zzt5iDxpewgWCnvict/Jj4JHEN4w90h0sPLpsSxXZihkcw7uZo2/dvtrW3XKBe9A09 17oK5CAJ547yDiN8Nh6hIMVea7ra93wlp1kCQs3mnA14zRH/G10jIgFS+KcpSrSS6XSd bYkq/FU4ygtTgfG1QV5blQ0L4AizjY2I/+ZBAMI4ovpsTLK760tdMJ6sWeGMQ0aVsL5Z 8tAzqfZYpWMfthZrdACt7frXpZQykz3JPTaCFWpzFPA2jLpDt1rz3hegWY0abykhrtzG rbCvQUEiuWyyRLkffEE6kis+FOkMV4jUd5+FcSVb77mVCwkCij/XfKdYZPfkv/45QlNE fZNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=g9Qgjsy7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id de53si1810177ejc.358.2021.03.11.05.30.20; Thu, 11 Mar 2021 05:30:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=g9Qgjsy7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233642AbhCKN24 (ORCPT + 99 others); Thu, 11 Mar 2021 08:28:56 -0500 Received: from mail.kernel.org ([198.145.29.99]:39978 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233608AbhCKN2W (ORCPT ); Thu, 11 Mar 2021 08:28:22 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7CE9765019; Thu, 11 Mar 2021 13:28:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1615469301; bh=W5NWfVys3KLJrGONFLWQnhsx9yWRyW+yAlxtZ5I/LII=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=g9Qgjsy7SRA9vTd3Vf5RmWaAwNm/ExZ/3j7VaQhlFQs8c/Rz1k3hkAv3H5rfT9sgn NVBGbJfrQjs5V1mxmOO1XFGnuLjGZfco7pJuaSjI4/q7IKi++FQX4NyTsUne6AbutD nSg53h0dKoAj8CXDPU7SVlsLwXe+tb0xMiokPqgV7SHViU/PvXXRWaJqXEH9U0zS/v xJ4psuf8LExbcYDiyjiTF34m7zGhKcfPx4TM23B4uQ7bBVYEkuX0Pjs2CnSppPbP7r /qGJ0OrxsM+aOl3ozdeA9fEjGnDfyTtZXQBYbY7YT0hY2wYeADduaahPGNDYZQFYYm 1h2AYLzKaobDw== Date: Thu, 11 Mar 2021 14:28:14 +0100 From: Jessica Yu To: Rasmus Villemoes Cc: Luis Chamberlain , Linus Torvalds , Andrew Morton , Borislav Petkov , Jonathan Corbet , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, Nick Desaulniers Subject: Re: [PATCH v2 2/2] modules: add CONFIG_MODPROBE_PATH Message-ID: References: <20210224142909.2092914-1-linux@rasmusvillemoes.dk> <20210309211700.2011017-1-linux@rasmusvillemoes.dk> <20210309211700.2011017-3-linux@rasmusvillemoes.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20210309211700.2011017-3-linux@rasmusvillemoes.dk> X-OS: Linux gunter 5.11.2-1-default x86_64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org +++ Rasmus Villemoes [09/03/21 22:17 +0100]: >Allow the developer to specifiy the initial value of the >modprobe_path[] string. This can be used to set it to the empty string >initially, thus effectively disabling request_module() during early >boot until userspace writes a new value via the >/proc/sys/kernel/modprobe interface. [1] > >When building a custom kernel (often for an embedded target), it's >normal to build everything into the kernel that is needed for booting, >and indeed the initramfs often contains no modules at all, so every >such request_module() done before userspace init has mounted the real >rootfs is a waste of time. > >This is particularly useful when combined with the previous patch, >which allowed the initramfs to be unpacked asynchronously - for that >to work, it had to make any usermodehelper call wait for the unpacking >to finish before attempting to invoke the userspace helper. By >eliminating all such (known-to-be-futile) calls of usermodehelper, the >initramfs unpacking and the {device,late}_initcalls can proceed in >parallel for much longer. > >For a relatively slow ppc board I'm working on, the two patches >combined lead to 0.2s faster boot - but more importantly, the fact >that the initramfs unpacking proceeds completely in the background >while devices get probed means I get to handle the gpio watchdog in >time without getting reset. > >[1] __request_module() already has an early -ENOENT return when >modprobe_path is the empty string. > >Signed-off-by: Rasmus Villemoes Acked-by: Jessica Yu Thanks!