Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3835868pxb; Mon, 1 Feb 2021 06:05:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJx0SUyS5M9tcF/BzvqxM+mkbDXzQI/BhSI3lp8dAmWyJ0VX3ngZIi510+YH2mc8z8IfsLwS X-Received: by 2002:a2e:3306:: with SMTP id d6mr10419763ljc.371.1612188328235; Mon, 01 Feb 2021 06:05:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612188328; cv=none; d=google.com; s=arc-20160816; b=0ewqVtXqwV+kdqA6a9DmjepHVABPjXssH5+wRIOGfosab/fuHdVxvnFyGR21KjrXXG aKFVTzemzSKrLFqMExXBf8JpGvEe4tn/z3zyaiUpmSkDk2314vCkFopS1K/3EYUcNr4d lscZbN0E3McXI8Y6PNve/6CSaxVfdTIAio03QMx3IYHtfJarVARBfGWNTMgUA4hztdaB MnsJ3VaYM7QLAatqGjgCCmMsvnVmC56V6PQiylXsq5A21KXGJQxvsx/7rCoKUS65QWPZ 24JlmXzOb9Cnkd6T67GwzNeKpX8L8eYMMWMWtTfjXY4n4mnJtsZA1UzfQ2XB3eK1DHmZ rNHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date; bh=EKFfPw0/QjQBGoArpeDa8zJkL6bYuo0HZS8nbrUIOg8=; b=jzsYAtZbQTDXAmwSjCnT+uZCvw7yAddvn4UDhdEKpE/f0+A7jlmkAkQ33lrpk96cs4 EzJaY7r+FDMVKtVRnYr/JV28js+7T0QGTDBef75ATXHJPkoJFy12yTvLnYyKj8oFhdpc C1zX6JDerplVCPaBEh5QrOSAPQcpi04WDbO0BfXF/r6HCk2MKUZsELLAx/bh99JE5eB/ H5RkmXXGjgw33ahLVwIUqgWflPPN51mpFQwEB1Vn6gkEsP5/uyeASMVJs0rSHhd890s9 14TcF4PegHwNHzEsargmuG5BGUBMseagz36hqOALLd5ycdwBej6NMSjcngXAgU16ljm7 QJrw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s21si10481430ejq.650.2021.02.01.06.04.46; Mon, 01 Feb 2021 06:05:28 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231916AbhBAODZ (ORCPT + 99 others); Mon, 1 Feb 2021 09:03:25 -0500 Received: from mx2.suse.de ([195.135.220.15]:49688 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231511AbhBAODY (ORCPT ); Mon, 1 Feb 2021 09:03:24 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 8740DAB92; Mon, 1 Feb 2021 14:02:41 +0000 (UTC) Date: Mon, 1 Feb 2021 15:02:40 +0100 (CET) From: Miroslav Benes To: Christoph Hellwig cc: Frederic Barrat , Andrew Donnellan , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Jessica Yu , Josh Poimboeuf , Jiri Kosina , Petr Mladek , Joe Lawrence , Masahiro Yamada , Michal Marek , linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, dri-devel@lists.freedesktop.org, live-patching@vger.kernel.org, linux-kbuild@vger.kernel.org Subject: Re: [PATCH 05/13] kallsyms: refactor {,module_}kallsyms_on_each_symbol In-Reply-To: <20210128181421.2279-6-hch@lst.de> Message-ID: References: <20210128181421.2279-1-hch@lst.de> <20210128181421.2279-6-hch@lst.de> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org One more thing... > @@ -4379,8 +4379,7 @@ int module_kallsyms_on_each_symbol(int (*fn)(void *, const char *, > unsigned int i; > int ret; > > - module_assert_mutex(); > - > + mutex_lock(&module_mutex); > list_for_each_entry(mod, &modules, list) { > /* We hold module_mutex: no need for rcu_dereference_sched */ > struct mod_kallsyms *kallsyms = mod->kallsyms; This was the last user of module_assert_mutex(), which can be removed now. Miroslav