From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 B13F528F5 for ; Sun, 30 Nov 2025 08:30:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764491458; cv=none; b=MUvBoIIuzh41yLeXvu/SGCMGPdvVX75ETl5zOQ2UXdAFJuwoSVrCmzzQ790t9JxXgu7549+QJ3LgUUXZA+GylXiSPKykxAaqI+RKsAA3gF8jaO55Xq1k+gNO2twoiWB7Fg5D5uRCgxQWfR+4ft5E7bEaT70H0g1IKnTUUiXDVnU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764491458; c=relaxed/simple; bh=hjtn4vEl+QegQnEQzP5k+PliyuzRsHHXhgS25u1Pg44=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=TPMxzf+E2YAnfuiVSxVVixsAU4BvesnQ2qbE11cjCgIW+X7rDHLWJI19KlRHEnCXUAt7FX0wl2CHv/2M0CoEGhxShNpNxRjzaiNMV7B4H3BbyZFt8NiHFwH9zcEgpgA/2adFBGvY68/3oBwvT6lqF8LQR8Lzs7YVFlYtOL72lUs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Q9PmsS7Z; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Q9PmsS7Z" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D06DAC4CEF8; Sun, 30 Nov 2025 08:30:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1764491458; bh=hjtn4vEl+QegQnEQzP5k+PliyuzRsHHXhgS25u1Pg44=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Q9PmsS7ZjLcvvt2KAYMibv7/iJlL0D0sersuORzAtzrbHVBPvRDaNHu73NgM0Z/G4 9QBSPKr88D2srDMVXtK8Vg3e0r68+bAA6wup/8lSnDQRGIF7y4OhFbKPlcxjOzdnWK xdRmdr7jM92+OtiCtIPpABQxcdGaanXbehm1XEwQ= Date: Sun, 30 Nov 2025 09:30:53 +0100 From: Greg KH To: Lance Yang Cc: Aaron Tomlin , linux-kernel@vger.kernel.org, mhiramat@kernel.org, akpm@linux-foundation.org, Petr Mladek Subject: Re: [PATCH] hung_task: Migrate hung_task_detect_count to sysfs Message-ID: <2025113039-tycoon-glowworm-49f8@gregkh> References: <20251129235159.1227977-1-atomlin@atomlin.com> <3e672e64-c03d-4129-ac13-13a45135b0f1@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3e672e64-c03d-4129-ac13-13a45135b0f1@linux.dev> On Sun, Nov 30, 2025 at 01:43:51PM +0800, Lance Yang wrote: > Hi Aaron, > > Thanks for the patch. > > On 2025/11/30 07:51, Aaron Tomlin wrote: > > The hung_task_detect_count metric, which tracks the cumulative number of > > tasks detected as hung since boot, is currently exposed via the legacy > > /proc/sys/kernel/hung_task_detect_count sysctl file. > > > > Migrate this metric to a read-only file in the /sys/kernel/ hierarchy: > > /sys/kernel/hung_task_detect_count. The sysctl file is removed, and the > > metric is now controlled by the CONFIG_SYSFS Kconfig option. > > Emm, I don't think we should do this :) I agree, because: > Removing the sysctl file is going to break userspace tools that > currently read it ... We can't do that. thanks, greg k-h