Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp754982rdb; Thu, 8 Feb 2024 23:10:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IFI9/SItEtaER9arDAyVGMdXQTLlz4Sz/SMd4vqzPWfTRLWkFLbV5za2rRYi6mdEG5Yo2XH X-Received: by 2002:a05:6808:2385:b0:3bf:d26b:3efc with SMTP id bp5-20020a056808238500b003bfd26b3efcmr987420oib.0.1707462624722; Thu, 08 Feb 2024 23:10:24 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707462624; cv=pass; d=google.com; s=arc-20160816; b=ynAxQ9tRf8NOLP8SV4fa83D97O7b5slZxmqkzUia9XCD/w/nadykIFa0autMtmEnwr he6aWkdM0r9yBIwofv7uiU8j3l+ggF0jJxLU3q+V0UCYKXsFMkAoyz6zOjOJCFJ2uoGN LaXoUORfpuirkqSynEC7hRweP367YpgvqxceazzMD29uZHrJMBd61z3NlbLvc6q5xxdA R4LaZLUQ4DQMin86k3O/ojlU2iegzrYQuaKtq0OqIpmkCt6AFJ31CezbecW0/wcAoIXx RKVu8ZVtIKZl9ZYoF7IUbnvqT7eZ8DqW/dhrcg2mkT8Lw/J7I8L5xbFQQtb0BsOPQfAs pQJQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=qSzX0INNFk+/IxT9nO7GVCJEW9cvWtprz6XblZoooLc=; fh=fHSJ+3ufrsHpHig61Y4deu62JiZViH+V3m+XbNgshzM=; b=VfZQ+FC/6HoEbmsKDfM1let4/qYav6tNWG5J97PYIHB6+SAomDEbyBpG10gakaliEo BypW4T3Z4hsaayt4Rkt5l95Abk53BSnREORZjhvjgIwRebG+k2doEMBrtxLtuwwUX4Xz rVUVmDqt2OXoWual4X0XJ8KpMIoZ8DY6QgnySfxPEtbeQdrxOM0coTdXo21Vyb1Ksw0D yOA1Akou9R/czu23UD5mpFcBvs9qIxvE301E21y1UbpixGTmWbzdlVJm41Wb1dxCoxYg 5fjX7CA+S0Mq1pBJMvaukOtuK1XCdeYf6bxxpjivN5YCIrQFIms5u0mdtGHKep8OTLC/ EYAg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=ip52rqeC; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-59059-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59059-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev X-Forwarded-Encrypted: i=2; AJvYcCU6TcNimjgJSRCM1KzUNYBP7kGgT/B5oES2eZFNWQ0bBz66q0/XiyNcG8vyseQ4MNG+olLgIUrejv1LXD2BRPGfNIeX01UWgogDHa8EQw== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id bq7-20020a056a02044700b005b86142ee56si1286790pgb.277.2024.02.08.23.10.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 23:10:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-59059-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=ip52rqeC; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-59059-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59059-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id E4F4E28A583 for ; Fri, 9 Feb 2024 07:10:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D0212657BD; Fri, 9 Feb 2024 07:09:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="ip52rqeC" Received: from out-171.mta1.migadu.com (out-171.mta1.migadu.com [95.215.58.171]) (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 0A45A657AB for ; Fri, 9 Feb 2024 07:09:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707462589; cv=none; b=VtZbpjL/bUnnTzOVB/wAQNn0uaer1mL/md3QOyYOhDjQckNH50RM9jwMBF1bnjoqCnQcrkWi72zJduAovJaYSV7+FdfgkfQuNstosF9LEU8qybXkzrUW9y1JLvac/RPj75eAXk26TeuuadKXMIrDlJEax2euKA49z2wJXvSMF/o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707462589; c=relaxed/simple; bh=Q0X0MIWz596nOjuI5ehDFAtn9dxEZXwNG9nSazvV+8M=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Q6NuWHms3jys0FwfRz6HUcVoadSgGiP/m4mHWDe0x71uxrBLSWsGLDYVexdeVzsSxSG/Dgh5OS3V1W59oCrLtaKuMGJpj8EuYbD1z+eeyg0Ds/ZstVrRjQa1ZYPzvBt0RloE7ZYMEpyQCOMnnmxPbYfvhvJ69KNXMRI1PMTCrW0= 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=ip52rqeC; arc=none smtp.client-ip=95.215.58.171 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 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1707462584; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=qSzX0INNFk+/IxT9nO7GVCJEW9cvWtprz6XblZoooLc=; b=ip52rqeCrIJZxKh6s7RJRBbmN7fgi4TPA8gqxpCTIVWuTcq2nNJxuKbMCi34EgGsqahVnv nk8vdgSf0KQ6jpJVYus7wl/iuoM631shzW46cHa5skCvSMC4Tsz9p4QnZsFeu9iRE/cBwq 2bBPPq9AUUptfj4cFywDxPjlLpd1QRg= From: Kent Overstreet To: linux-kernel@vger.kernel.org Cc: Kent Overstreet , Andrew Morton , fuyuanli Subject: [PATCH] kernel/hung_task.c: export sysctl_hung_task_timeout_secs Date: Fri, 9 Feb 2024 02:09:35 -0500 Message-ID: <20240209070935.1529844-1-kent.overstreet@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT needed for thread_with_file; also rare but not unheard of to need this in module code, when blocking on user input. one workaround used by some code is wait_event_interruptible() - but that can be buggy if the outer context isn't expecting unwinding. Signed-off-by: Kent Overstreet Cc: Andrew Morton Cc: fuyuanli --- kernel/hung_task.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/hung_task.c b/kernel/hung_task.c index 9a24574988d2..b2fc2727d654 100644 --- a/kernel/hung_task.c +++ b/kernel/hung_task.c @@ -43,6 +43,7 @@ static int __read_mostly sysctl_hung_task_check_count = PID_MAX_LIMIT; * Zero means infinite timeout - no checking done: */ unsigned long __read_mostly sysctl_hung_task_timeout_secs = CONFIG_DEFAULT_HUNG_TASK_TIMEOUT; +EXPORT_SYMBOL_GPL(sysctl_hung_task_timeout_secs); /* * Zero (default value) means use sysctl_hung_task_timeout_secs: -- 2.43.0