Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3302802rwd; Mon, 29 May 2023 08:27:07 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7+PdiC+IoFr59IX5usCB9HEmhTKNKZIi1cs9AEWPUx9Pd9V26+hSYA5JV1P2zh9G7m8m8B X-Received: by 2002:a17:90a:7a8d:b0:250:b16:f498 with SMTP id q13-20020a17090a7a8d00b002500b16f498mr10587374pjf.47.1685374026942; Mon, 29 May 2023 08:27:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685374026; cv=none; d=google.com; s=arc-20160816; b=JUGJCWgdIC7/1oWemks6Wf9CTf13cTWjRpQ0hLlXktvFQ6Q9t0qTd4WpXivLJCiIAw veyfjXVaQH2zz9XeH9a1Wxv05RTwbXos97Znk2h6nHEOG4BCqjnxhrFv30pNpnD2SNhz XYL+mk9+ACVAn0A0s2fPExXuu8ipimvn3Tkammu38qdJPaWRwm59gzxgcQPlSxrkE8u6 AsepxFpjsWxOsEEjzMYj6H2ZVw2znT1+mUKb41yXtI6MFVATjT2QPcj7xpUeeydgeOb/ W2BjKYU9I9RGgYbAeScm4BpK14jIOluNiDuNCiOh2oxgWvV3CRSA1boZVxPTLj9ADpHo dLZg== 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=pWCGbr/xo27bJqX4LJApNLsonMmZbRU5cf2sbkqIIqk=; b=ZPGDu3C6NQhLEQUo7J6K9yKs8QChi71Vn9HZdomAoffR5FnBCHZQWZ0zVh/0ADVHz+ Rd8c1+U8ARpg3F4a/9KXdSGKGQ4D6lrdMqaMTN3zE9qh9GwQ8+arCx7rWdsQ50tuh3Nb ktRpeJAS4nvhkJiVazlPBjZtLRP0EIfvIE1KEPaY8B4Q8lQkj9f/YukcHcFl/eBY2xpr J69yGsnAGwOd1Kul64qX62WG37bT/Ci0E4qisHed+h3iJVpvDOE7Y260NYWHs3CCC4AJ QTseqXwoa6k7tuIbnm0gScXZNnqMoUEsitTPyFGPNWaihQOOSW3beBc8UFu54vDRcL+R FqGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hTHsIbQq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ob17-20020a17090b391100b0025359a570fesi8385604pjb.19.2023.05.29.08.26.55; Mon, 29 May 2023 08:27:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hTHsIbQq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S229667AbjE2PSJ (ORCPT + 99 others); Mon, 29 May 2023 11:18:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229807AbjE2PSI (ORCPT ); Mon, 29 May 2023 11:18:08 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26F5DC4; Mon, 29 May 2023 08:18:07 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B2AA4615F0; Mon, 29 May 2023 15:18:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 179ECC4339B; Mon, 29 May 2023 15:18:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685373486; bh=pCyIkcfuOGLfoej499SDyjDDnNMS1kghnwZewYrliwE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hTHsIbQqENAiVjiPSoaIA0euFBF/SqcWn0yT1saGhHU024SyZPBV9CvWDVGKgGK11 Se9p61dpwbmP8da8vgz5zmzqkZWiOXRkq8wlBbgjundRwzrPtYgiaDiOmqHZRbeb79 W5DHRyicRTQA+Kw39q3bZEapSVKPmjRkOpp94+dFv/nSbUST/Kh7n3VUUfLu+j/ZCv hiU03hqIBR+vwaTw3wy8w9celjteMDZW3na21VbLy9oWMNfpAieILENOW8rOBAP+RP 95tTtyPeOmnAqRL0wy26q9frAWBhJuL7P77nVwu85rRFqA16Pu5n5v+shXTfihXT84 XhvkcbNgKpuDQ== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1q3edH-0007Qt-H8; Mon, 29 May 2023 17:18:04 +0200 Date: Mon, 29 May 2023 17:18:03 +0200 From: Johan Hovold To: Linus Torvalds Cc: Luis Chamberlain , Lucas De Marchi , Petr Pavlu , gregkh@linuxfoundation.org, rafael@kernel.org, song@kernel.org, lucas.de.marchi@gmail.com, christophe.leroy@csgroup.eu, peterz@infradead.org, rppt@kernel.org, dave@stgolabs.net, willy@infradead.org, vbabka@suse.cz, mhocko@suse.com, dave.hansen@linux.intel.com, colin.i.king@gmail.com, jim.cromie@gmail.com, catalin.marinas@arm.com, jbaron@akamai.com, rick.p.edgecombe@intel.com, yujie.liu@intel.com, david@redhat.com, tglx@linutronix.de, hch@lst.de, patches@lists.linux.dev, linux-modules@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, pmladek@suse.com, prarit@redhat.com, lennart@poettering.net Subject: Re: [PATCH 2/2] module: add support to avoid duplicates early on load Message-ID: References: <20230524213620.3509138-3-mcgrof@kernel.org> <8fc5b26b-d2f6-0c8f-34a1-af085dbef155@suse.com> <6gwjomw6sxxmlglxfoilelswv4hgygqelomevb4k4wrlrk3gtm@wrakbmwztgeu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Mon, May 29, 2023 at 07:00:05AM -0400, Linus Torvalds wrote: > > I do wonder what it is that is different in your setup I took a closer look at some of the modules that failed to load and noticed a pattern in that they have dependencies that are needed by more than one device. If attempts to load the drivers for two such devices are made in parallel, only one of them may be successful in loading the shared dependency which means that module loading is now aborted for the other. I took a quick look at the kmod code https://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git/tree/libkmod/libkmod-module.c#n1305 and it does seem like this could happen if we start returning errors when a module is already in the process of being loaded. Johan