Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3185918rdg; Tue, 17 Oct 2023 07:11:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFje4oFqqM81aHKBxnAHJOhIKSYjoKWIyhpmj2zWYEnbaPWb3X7WzOWsZCmOcZpuJTi1DDa X-Received: by 2002:a17:903:4295:b0:1c9:fb8e:2c33 with SMTP id ju21-20020a170903429500b001c9fb8e2c33mr2462032plb.7.1697551892218; Tue, 17 Oct 2023 07:11:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697551892; cv=none; d=google.com; s=arc-20160816; b=Zz5fe0JrxqXZMq4JZWlh7zFmmea+adC/3G6Y+o/nXwfrJ+ItWNyfM7FFJ1vJpgQSO8 t367aZjDD14QQhbn9Idkiyw+suCYIj8WLxC9NVC65O/bsdJ0SJo7tYKkm+NHA94ei0t5 KcHGEatkDjo7+dYaqEBsGHc7803I0nDlFBMEqBvK2kCKr7iu70rl07sEax+tCsScf6z4 NAnONmVxrSbZE1zv10dIIClRysAnpeXfwoShLasbIX3sakbHOHqFIKTfbGh8nENVqbJW RxSH5DDdNX3uJwQELtuYXesOGTa7yElxJEvpweWzY5waE/IehcO7zYru9so/XkzUMHN0 62kQ== 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:reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=wBAY7+2I4BsePJCPxZiaWLRbRov6PVgeMTSTd3BemME=; fh=TzYgjn/6qFSK4xb7wnGjhCD7BiA9RXAwkr3Kn96flKc=; b=ppghaSnOU/dYyFOsV/1LjC+0zmnnfmn2rblVx2nJc3K1cPpa/0+WidQ90Ry3G5UQPi AXWlL9BivL4SzE/Wmj3OGYfKVkAH/HYhFIQGCxbT1q6k+K2gObDgNSfFqV95PgMRS3JN /O29uT+NSplYfg8QFm0yFkejZtKtcWtT2IOCS/dFfulyATbd2QDXljvyUbxGqfKii5c9 JU6//0Fsahw53cH91+qoXzsBTHy3YBpworr0An2MgbNOv4Yk6iCdxDCZmRbcy+r7GOv9 u/xNKksUZGMiCrg+ItuiDNDOY7m3tO03tEw486QM3xnloKp0av+iCV3G6YQa5smY1f6h FYsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tugooydZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id s6-20020a170902ea0600b001c724cd1128si1988906plg.276.2023.10.17.07.11.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 07:11:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tugooydZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 03D628061B41; Tue, 17 Oct 2023 07:11:20 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343606AbjJQOLQ (ORCPT + 99 others); Tue, 17 Oct 2023 10:11:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233670AbjJQOLP (ORCPT ); Tue, 17 Oct 2023 10:11:15 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43DDEF0 for ; Tue, 17 Oct 2023 07:11:14 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E6F0FC433C8; Tue, 17 Oct 2023 14:11:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697551873; bh=C+zGadaHwfOd74zIWHTHTzMU6aRU34ew/PXDW8ogT5w=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=tugooydZmUt5cJGnJ6rQmHx8hq0BedzTJK2w+XwhNQypjTYFQbBZYP04G4vOEf8mx Q8JWv+5o984m/LEuPmU0xcWyYtOxPpXWReczc3runKKsUsbVTyeZI/c2HkIZan3YUF fyUZ6cUSYUexU0gsTPbK4YuF4BXs7ZN7GA72c+LmmptccLWFmkbOCPo9Sgg+4vKVm4 AQ1MHmjcXvyMiG19gxe4ePWDXm6HR+VinUSypeZ40Cqzlf0rCk4NS2wA8qlH5w9a/C hvk1Q1Oi99JVDfYVzsjBbKUvZj2aXEMFTbKWT2jdDIzCvGnSWODYOnANQC8eXghaqs tEt/LVdcyRN5A== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 98B56CE03B0; Tue, 17 Oct 2023 07:11:13 -0700 (PDT) Date: Tue, 17 Oct 2023 07:11:13 -0700 From: "Paul E. McKenney" To: Thomas Gleixner Cc: John Stultz , Tetsuo Handa , Stephen Boyd , LKML , Sebastian Andrzej Siewior , x86@kernel.org Subject: Re: [PATCH] clocksource: disable irq when holding watchdog_lock. Message-ID: Reply-To: paulmck@kernel.org References: <80ff5036-8449-44a6-ba2f-0130d3be6b57@I-love.SAKURA.ne.jp> <878r826xys.ffs@tglx> <8734y97ng5.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8734y97ng5.ffs@tglx> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 17 Oct 2023 07:11:20 -0700 (PDT) On Tue, Oct 17, 2023 at 08:49:46AM +0200, Thomas Gleixner wrote: > On Mon, Oct 16 2023 at 16:03, Paul E. McKenney wrote: > > On Mon, Oct 16, 2023 at 11:47:55PM +0200, Thomas Gleixner wrote: > >> That said, this whole clocksource watchdog mess wants a proper > >> overhaul. It has become a pile of warts and duct tape by now and after > >> staring at it long enough there is no real reason to run it in a timer > >> callback anymore. It just can move into delayed work and the whole > >> locking problem can be reduced to the clocksource_mutex and some well > >> thought out atomic operations to handle the mark unstable case. But > >> that's a different story and not relevant for curing the problem at > >> hand. > > > > Moving the code to delayed work seems quite reasonable. > > > > But Thomas, you do understand that the way things have been going for > > the clocksource watchdog, pushing it out to delayed work will no doubt > > add yet more hair on large busy systems, right? Yeah, yeah, I know, > > delayed work shouldn't be any worse than ksoftirqd. The key word of > > course being "shouldn't". ;-) > > Yes, I'm aware of that. I still think it's worth at least to try it. OK, good. And again, agreed. Thanx, Paul