Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1029392rwb; Thu, 11 Aug 2022 14:31:13 -0700 (PDT) X-Google-Smtp-Source: AA6agR7MoSdo1X0K3hqwEShfhYEDPG/pT1614MzUN2aRZF/Eav3IyC1hYFUzjkLpnxq8GY41CQnY X-Received: by 2002:a05:6a00:2352:b0:52e:f0bd:981e with SMTP id j18-20020a056a00235200b0052ef0bd981emr711993pfj.28.1660253472850; Thu, 11 Aug 2022 14:31:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660253472; cv=none; d=google.com; s=arc-20160816; b=LPgR1+jfYiKLoQ/i4SOZ6GovkXTbWkaNd5fKfaPAtxQZ7ysCrmrmFcvzxLw7ROo5fH ROcXm+D4DWAd4Rrls7ujpe3belue5zkrUfvxd1GsarQ+fFfIzaFqF3liGS3gjGyxJXFZ AQIAWoGYpscycskFZTudoOaT1CM+WV7E6AL/ZZNvgsJ54aEPLPBuK2Vu/ZFOy+BnW6mv NgOxFV5TmIgPQ602DIeKPgYKYUJDDSRXwS3PU+5W4JyjKoebnYHmAhWq5X2RLKJLP9ze BSmuruXCnCK/QJE/JWxIPCvfucG/WWCQDHt5g+k1azRV1+7moTm4N0XVnCuPMg10TE+9 xQUA== 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=VU1PZeaw6I4YyL6iOFs+wCjPWpBvnmOGKLSrFWd0G/s=; b=ZfKI+eJxfLP0c5K+aKkuOx9UVe1V0qL1YrL23sZotH1PdoM92PbskjvLHO5cjYlzk1 mhuQXHBIvX9VzIVpae/axOOnhtVpKdGGg1uH4XvRY6LNCNt8uqB2909C/f0+rpv/fhbo 8i1QQ1ddKbjlayvgf46nZRtF4PqNteiUDGg5Fdarugzb0D3ZeVBw+/ZSUJBjGOZxI+HE 8ipNY7IJVK89wEXZS0bRDmF32HERIDJdiF6vmT1+WdYXzq0WDujTl10TDPnf3mGGJsdW vkWtGk+C5W91LDnRuAOoysnbvLM1UcBqMk6+BDhnEYOhpPS+nTyEHHRFy1oOB6bZwxzQ 1Qog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=QG7bP6Fi; 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 13-20020a63114d000000b004129a78936fsi441483pgr.1.2022.08.11.14.30.56; Thu, 11 Aug 2022 14:31:12 -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=casper.20170209 header.b=QG7bP6Fi; 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 S234678AbiHKV2o (ORCPT + 99 others); Thu, 11 Aug 2022 17:28:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229591AbiHKV2m (ORCPT ); Thu, 11 Aug 2022 17:28:42 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E64889D8DF; Thu, 11 Aug 2022 14:28:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; 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=VU1PZeaw6I4YyL6iOFs+wCjPWpBvnmOGKLSrFWd0G/s=; b=QG7bP6FilsSAZ571eM1Q1YCap/ VairpPnmpDhpHxSQR4JS2J4Z5dAqMi3Un8zuDp5WS0PbP1J8VXlrX7PfxIAVNcyI9XmqSCq22gPe7 SfTw9evl2A6qLn4poujnmCxcYlJlceCXSwEzvzlV4sAT6WN3LL0gvtXjwB6aep7QK18YbwO7iwCf1 0l9DxZcYbik86ikCHjgWVeXU/j5jyiBpdautmducKWbre7hkqkwLao4BRUawDVVXOVWOr6H+p39Y8 hoOiHExMgtVPHTWNiPuN5DJJOwYodocQ25wXfybxbHaupoN5bL8C0m9HEn1fUnWr6K2KZZmaSBgnB QYLqbiuA==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1oMFj9-001IJD-45; Thu, 11 Aug 2022 21:28:27 +0000 Date: Thu, 11 Aug 2022 22:28:27 +0100 From: Matthew Wilcox To: Linus Torvalds Cc: Ingo Molnar , David Hildenbrand , linux-kernel@vger.kernel.org, linux-mm@kvack.org, stable@vger.kernel.org, Andrew Morton , Greg Kroah-Hartman , Axel Rasmussen , Peter Xu , Hugh Dickins , Andrea Arcangeli , Vlastimil Babka , John Hubbard , Jason Gunthorpe , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Mel Gorman Subject: Re: [PATCH] sched/all: Change BUG_ON() instances to WARN_ON() Message-ID: References: <20220808073232.8808-1-david@redhat.com> <1a48d71d-41ee-bf39-80d2-0102f4fe9ccb@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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 Thu, Aug 11, 2022 at 01:43:09PM -0700, Linus Torvalds wrote: > May I suggest going one step further, and making these WARN_ON_ONCE() instead. > > >From personal experience, once some scheduler bug (or task struct > corruption) happens, ti often *keeps* happening, and the logs just > fill up with more and more data, to the point where you lose sight of > the original report (and the machine can even get unusable just from > the logging). I've been thinking about magically turning all the WARN_ON_ONCE() into (effectively) WARN_ON_RATELIMIT(). I had some patches in that direction a while ago but never got round to tidying them up for submission.