From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-174.mta1.migadu.com (out-174.mta1.migadu.com [95.215.58.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 998BD3F871E for ; Tue, 4 Aug 2026 02:25:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785810320; cv=none; b=PdLDwXL+LX8jv2UmjXnuoaYAVVRg6pgRFiAZ7pmDuPEngbRMLhBeGoSDSuI0tMj+zZiqWpBAVCrdaqX7ozCWkbZTK3LPmJ81HoNTWWIBw7ysbyoSPKMzu07r36MuwJL8RcvmhECUJO++XovC2q2OsGb3LRQpoOFcMZ1haVTKYpE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785810320; c=relaxed/simple; bh=WX7BSQoKRRunG8Oyo/iwXEK8eHiJJk/jsgyoSEwmjZs=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=LyNNwIl8wTyvTqwf9R9Si5ibM6LQH3PJD/BVMILXRKl+9Xq6FYaDKr0a4MtTino9fIXXEd8lzcD/F8Xx5OFWGqr+4oBvhtP0jhaQgmpWU4ZkA0jHsRAKoqfyVIPdQVd3w2jEqGUBNNwCStR30FIVCdBYtku4MyFpHloVvCnQVcA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=b/bCG2Bj; arc=none smtp.client-ip=95.215.58.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="b/bCG2Bj" Message-ID: <6b7d5ce8-309c-46d7-ae7a-df38b733839c@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1785810312; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=YerlkeUkTKQk8AiqujQYPJIMk9NU7RlvKkm13uX/z64=; b=b/bCG2Bj5Sxiu/ijRZIdq226FdJ8R1KGX3pO6uSKWkRtkc0LFew4+OB0PGa0H3i/+OPFb9 RN+Zc0yNjYIqFGqsY/E7xO7LDWPQeq2iis2grKq3RFzQQ/sUU3UmZotagpFesoasVgrc1T /qGIESRWKhRU8ujcvNrG25zvGy0pMME= Date: Tue, 4 Aug 2026 10:24:01 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH 1/2] hung_task: Reset warning budget when problem gets resolved To: Aaron Tomlin Cc: linux-kernel@vger.kernel.org, david.laight.linux@gmail.com, neelx@suse.com, sean@ashe.io, chjohnst@gmail.com, steve@abita.co, mproche@gmail.com, nick.lange@gmail.com, akpm@linux-foundation.org, mhiramat@kernel.org, pmladek@suse.com References: <20260804001542.249639-1-atomlin@atomlin.com> <20260804001542.249639-2-atomlin@atomlin.com> Content-Language: en-US X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Lance Yang In-Reply-To: <20260804001542.249639-2-atomlin@atomlin.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT On 2026/8/4 08:15, Aaron Tomlin wrote: > From: Petr Mladek > > sysctl_hung_task_warnings counts how many hung tasks are reported. > The watchdog does not report anything once the limit is reached. > Currently, this budget is decremented permanently, meaning the kernel is > left blind to subsequent hung tasks even after the original issue resolves. > > Keep the global sysctl_hung_task_warnings intact, and instead decrement > a copy (hung_task_warnings_printed) when warnings are printed. Reset > the copy back to the configured sysctl_hung_task_warnings limit once the > problem on the system gets resolved and check_hung_uninterruptible_tasks() > detects no hung tasks in a check interval. > > Also keep the copy updated when the global sysctl_hung_task_warnings > value is updated via sysctl, and update documentation to reflect > the new behavior. > > Assisted-by: gemini-3.5-flash > Signed-off-by: Petr Mladek Was a bit surprised not to see any tag from you here. I’d assumed you’d be taking this through testing and spinning v7, so I expected your SoB + Suggested-by Petr. Keeping both SoBs works too; either way, you’ve definitely earned yours here. Assisted-by: gemini-3.5-flash Suggested-by: Petr Mladek Signed-off-by: Aaron Tomlin Same goes for patch #02, btw :) Thanks, Lance