Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp218606iog; Fri, 24 Jun 2022 02:42:00 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vg52nH0Wc479mmnqTBmERGBPWIGIJV0CUAsWCMEJfiOEK56vJAd3R5Lf5rz8fOyPyHGJPx X-Received: by 2002:a05:6402:3227:b0:435:8e00:62b4 with SMTP id g39-20020a056402322700b004358e0062b4mr16174998eda.325.1656063720391; Fri, 24 Jun 2022 02:42:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656063720; cv=none; d=google.com; s=arc-20160816; b=V4/Ar+q2C9TWDNcqDYkbOeFQmNpJmvevqBNZb85ZCY4iCTEL1X6godG2N+6mImfItS hWQNR4Xti44qCfpnYYw0T7fcjq2gjeYCAAuBClkT6F0OFUbA98pVS8ycc3OdokPRFbFm JuU32bE0hXe/GWEoQii2lsaZfFWusvekOJRMEk3OpajweuuH1AH8ESE/Q93DhACAqvth I/Y6AfShyocFDG6O0yQ7Gv0yWzjjX4B9cMT/Ffy0UK1bOMpNI1ytBuj6xspULNGn/qXJ lwTC6W2EKv4z1Ty5BYSaN1xhB0B2YVg16ean6f11TDgjYK5Lhgyr6KWNkYv+/ihHJbq8 k+KQ== 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=Atd5LJgXzo1vZyeUf+/KGPTNYBq0h/PGUpmKMol4gKA=; b=0oL56ZPzyCTCu3dyqtw3nxVEHMKY/5yLwwTJhqNvtapGzDmhX2XdEKcWpAE1cTU8HM LCvUIpWsT5tzqDEF8JDGBHblWUjiyz50o1rXEJJJtpu75nxDONpkdsbMP11qR9mk+jrN BJ+zBsnKRo4YRpwkFBeD1NSJW2f9gG+nwm1yKPRJGgJLwL5G0/nK4ZdxEqr7gPFptk0I cmO+U1HaSBam79XKS24wa9kvABip13J+KQm9mIDDPE21+ux/l5XRuDB3KrZ5HBavRqzI yKDNloTL3pxbVFx4VNMOxOn+bwzNQ/+qiEDltAK88MXymhCEizMqYywYHSXV0KJHnDTM 7GiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=CGjsvzJo; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c16-20020a05640227d000b00435728c0adbsi2946162ede.158.2022.06.24.02.41.34; Fri, 24 Jun 2022 02:42:00 -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=@infradead.org header.s=bombadil.20210309 header.b=CGjsvzJo; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229889AbiFXJhm (ORCPT + 99 others); Fri, 24 Jun 2022 05:37:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229792AbiFXJhj (ORCPT ); Fri, 24 Jun 2022 05:37:39 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E354E79444 for ; Fri, 24 Jun 2022 02:37:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=Atd5LJgXzo1vZyeUf+/KGPTNYBq0h/PGUpmKMol4gKA=; b=CGjsvzJofFcrSPSXw0tb9JZiNv bAjIyAK0C8xhrporVTwUtjJ5S9Bhet9G683UECw5n0B3opQx6T6ZHqFCNqMKnGBAleljYNhSuSJ1k FkxD2OAGmBd8YmAkhX2R9OfQeeKFFw4fWJTbMcazC1ve4FxYYkJuxS0WL50NXpgrAQy67XeHl5Hcn TQOhio3h4WBwWNXowMO9xq8t3pYSeXD71b2O1EniUpw95+sXhct3/LUCWeeejxkQtsV/AMHua4Xwl QFoQddXjiHw8HAUg8s6PFY++qFbISJ7bK62hKaVa2Jd7wbObdueD+4y+fJu58hc31VC2hwWxBbmwM Fm/H6pnA==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1o4fkh-001SaQ-OI; Fri, 24 Jun 2022 09:37:23 +0000 Date: Fri, 24 Jun 2022 02:37:23 -0700 From: Christoph Hellwig To: Laurent Dufour Cc: mpe@ellerman.id.au, benh@kernel.crashing.org, paulus@samba.org, nathanl@linux.ibm.com, haren@linux.vnet.ibm.com, npiggin@gmail.com, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 2/4] watchdog: export watchdog_mutex and lockup_detector_reconfigure Message-ID: References: <20220614135414.37746-1-ldufour@linux.ibm.com> <20220614135414.37746-3-ldufour@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220614135414.37746-3-ldufour@linux.ibm.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE,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 Tue, Jun 14, 2022 at 03:54:12PM +0200, Laurent Dufour wrote: > The watchdog_mutex is exported to allow some variable to be changed under > its protection and prevent any conflict. > The lockup_detector_reconfigure() function is exported and is expected to > be called under the protection of watchdog_mutex. Please provide an actual function accessor instead of directly touching a global lock.