From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-186.mta0.migadu.com (out-186.mta0.migadu.com [91.218.175.186]) (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 B8E87286D4E for ; Sun, 8 Feb 2026 04:13:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.186 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770524001; cv=none; b=gEtzJPN9gIghd61i1NxLVEBwRoFeSHlWh/TOApfwM54qnJFeyfMdyUAvwg+0RtSvC6meUZUa/VrTUwPEFmGcAQdMnPFKjTLq2YH/85NClK3nD1rbj5uOVV31GQT26XNfsJmMJvEtqhjRB6oeKKpXBSvBaODgBt603EAl7verW1M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770524001; c=relaxed/simple; bh=jk5VvHt8Md/V5S2rHrLtl0laIvlvCbyBMlUn+X1+ZYQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=X2a4emJTREr/ymuAuvQ5iPfGwXyYo+XPP3/KUA10V0oKaEi2Mp87p1DkWwwpe9UIjb4O67qt1qFiY8lHQOOccBgAiTErhxssI7Iuvl1hYG+2PBtORNZZHGEE70NtJXV2sYmfFQvNuKOAQyCa9jVYdVmjZ6oYu667qS2+EQ2si/s= 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=B3yWKiS1; arc=none smtp.client-ip=91.218.175.186 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="B3yWKiS1" Message-ID: <97918424-6fc7-43a8-9301-20cc39573251@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1770523999; 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=02HKeqMwb75d14dAH14EsJr4jfeoTXaaNRLvlBR2LQg=; b=B3yWKiS1KYoMzFWx4FJpsnBqRWiwtrglRBlozGUWT4t+dk8CT7zdnvOeMLd3crmuP+YZug li/dKNaVHCYQY+wItMi1bMzKzPq5A4N6iak8cPYZ+zx17HNe/qMzcV5fJVxIioH5Ts2bZI xacxN/9RXaSweecEZE2DPmxV7kMEc8w= Date: Sun, 8 Feb 2026 12:13:13 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH v8 3/3] hung_task: Increment the global counter immediately Content-Language: en-US To: Aaron Tomlin , pmladek@suse.com Cc: neelx@suse.com, sean@ashe.io, mproche@gmail.com, chjohnst@gmail.com, nick.lange@gmail.com, linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org, mhiramat@kernel.org, akpm@linux-foundation.org, joel.granados@kernel.org References: <20260208002116.3790497-1-atomlin@atomlin.com> <20260208002116.3790497-4-atomlin@atomlin.com> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Lance Yang In-Reply-To: <20260208002116.3790497-4-atomlin@atomlin.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT On 2026/2/8 08:21, Aaron Tomlin wrote: > From: Petr Mladek > > A recent change allowed to reset the global counter of hung tasks using > the sysctl interface. A potential race with the regular check has been > solved by updating the global counter only once at the end of the check. > > However, the hung task check can take a significant amount of time, > particularly when task information is being dumped to slow serial > consoles. Some users monitor this global counter to trigger immediate > migration of critical containers. Delaying the increment until the > full check completes postpones these high-priority rescue operations. > > Update the global counter as soon as a hung task is detected. Since > the value is read asynchronously, a relaxed atomic operation is > sufficient. > > Reported-by: Lance Yang > Closes: https://lore.kernel.org/r/f239e00f-4282-408d-b172-0f9885f4b01b@linux.dev > Reviewed-by: Aaron Tomlin > Signed-off-by: Petr Mladek > --- Looks good to me, so: Reviewed-by: Lance Yang