From patchwork Sat Feb 24 01:16:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Darrick J. Wong" X-Patchwork-Id: 205763 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp935254dyb; Fri, 23 Feb 2024 17:20:41 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU06gn4uhRmv5xhydo1JUZMAbQt8ZWVL0smZiLb8aisTU9sLmgAaHkihqMEtl4ZPGnt6L/U0NKohf6DgDChzYHB3MZ64Q== X-Google-Smtp-Source: AGHT+IGyDWc6C1axpKuW9Q1b8UMZY46SO1nOKe9dywIHl/fdAKyUTiErZO98MnSVSoZSSc3+1cE+ X-Received: by 2002:a17:902:eccc:b0:1dc:4649:43df with SMTP id a12-20020a170902eccc00b001dc464943dfmr1834395plh.16.1708737641528; Fri, 23 Feb 2024 17:20:41 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708737641; cv=pass; d=google.com; s=arc-20160816; b=lxtsnfysW1rjn1UZzidJL7q8pcfp6bB5eEZmTbFnpoQ7Ol7V1uokdXgNGAMMxAyuR1 TMNrL6rQRj34YzMZsk3aMkm1zRTG3xMba9OBdPHNntX8WLmeUE2xEbyA0JHgqgXY75vI gSdt458Bv0G+g+28Sb+l6QUH6Va/9yfVbHqABYQK4J5wtdZFPylrE8eIiL2SnmGHXRPV B+mfEFxOQa9Mr/2QohlFPklL3RA8nni3fBwzUxhKeG9gk7cdfdg57YqlSIwMBvBTAA0f XosbLqK8+pyoDglMMz30fdQb+2MqyWnCXMP4+84FoW14r+gDj9LnfQCRWFiyRq0A+gpw OVlw== 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:user-agent:references:in-reply-to :message-id:cc:to:from:subject:date:dkim-signature; bh=qzILariwP0zpgnzDKtqYvDLOUNIJo+7Ve5JO6SRG7n8=; fh=lGGxugdFsgw4If1JDAMWI7BPSBi1iTrn7zM4VhvAjIA=; b=M4k3hd8vzVfVdVDOQcCcIiweNzfBzgFsuTxXhqus4YHH2TFHbggaBfWzw/6WD4y+xY GSWTjKMlSAZSXohpH7/6OzOoKP53uhVq7aR/R5td/E2OEXnwnl5FqaDRbrBSX5AKx6EJ +p8QPAoEkYfKCROXn0SDruXwQ34UjTKlF/Mq7/OAjLj9EyG5AoRv9mdlVcK37IMh4bXS FME3Q9zzQFz88VtW7Y5BGSLQWPwRBHqc9/LbiIYh3a9MoCS+c3vTXe0fAgwivXnbu4w5 795oLlc6PPec1xYJORSmFxTLFRAFGr2J5LRRlAJvXJHS4d/eWYBzc2oaM5oT89Vw9yjG ntuQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=siWXoDh6; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-79412-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79412-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id e2-20020a17090301c200b001dc84bb01f5si45188plh.437.2024.02.23.17.20.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 17:20:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-79412-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=siWXoDh6; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-79412-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79412-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id A8359B24C12 for ; Sat, 24 Feb 2024 01:17:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A30E19476; Sat, 24 Feb 2024 01:16:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="siWXoDh6" 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 170048F58; Sat, 24 Feb 2024 01:16:05 +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=1708737366; cv=none; b=DjTV/sWmWXc3/5GAtV0y2RPE1xfHQkHd7/ntwJwjxPtM/EA4BC3tyNy9hYjFVeDyXw4mFWGef0jF9v7lY3rL31MUWAtP1fihQCtfGevg3S0nN2oxVVHWLVAbikGVJHGFCneDfdn/8DHP2e46Sv9DXujn2ZoFKsHEZNT+NVnCJMQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708737366; c=relaxed/simple; bh=YYvJrol7FIU10J6nT0nMYbutoEnKpSEot6WG6TgCjxk=; h=Date:Subject:From:To:Cc:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Bx7nO/Y7Ho8lzfwQ6/RxXYguG6wHyWFZkKAwUuerf1k4pKbRN9f7pu4oHeaitK6gCofASXzXX2tE/avWooqi2g86S0jXhuwiWCY0FAIFrFjPROisU7wTTWlAeInuUyVdkqHTtF51khG4ftFhTegffyYDg3D92xUJxtFDhL88Lq4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=siWXoDh6; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A2E1CC433C7; Sat, 24 Feb 2024 01:16:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708737365; bh=YYvJrol7FIU10J6nT0nMYbutoEnKpSEot6WG6TgCjxk=; h=Date:Subject:From:To:Cc:In-Reply-To:References:From; b=siWXoDh6HKxNuMQh5M7rE1hVP1E5wpey2YEybBYnNWE/9LU+eI9Bmzv8YuZPPY5Ga niL92Oeea4JW8Xxx0gLfm+tNFNYZ1fJ+OLoXrf7o/IQ2mUlWPzp4mymg9KeGBiqXPI +tKLMlzk3lYQi0+je4XHYWem+oLy9nTGTQ6l4u0X44qD3tvX6TPOtGHW0n3SZahXlG ZEjGuGxCpIMlGVgvHdjwG6SDPVto5W5E2MVqzGkGf2r/og/F+6ySumL6qmGbso4kXO HR2Icls/gjq93UGTa6PUkpg/oXJqjAlEkxNKWJ0Nmv5Wa0vLZlljzI23hPJPMELc75 1iRL7T6dTjDoA== Date: Fri, 23 Feb 2024 17:16:05 -0800 Subject: [PATCH 09/10] kernel/hung_task.c: export sysctl_hung_task_timeout_secs From: "Darrick J. Wong" To: akpm@linux-foundation.org, daniel@gluo.nz, kent.overstreet@linux.dev, djwong@kernel.org Cc: fuyuanli , linux-xfs@vger.kernel.org, linux-bcachefs@vger.kernel.org, linux-kernel@vger.kernel.org Message-ID: <170873669034.1861398.8097801489286284855.stgit@frogsfrogsfrogs> In-Reply-To: <170873668859.1861398.2367011381778949840.stgit@frogsfrogsfrogs> References: <170873668859.1861398.2367011381778949840.stgit@frogsfrogsfrogs> User-Agent: StGit/0.19 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791741281490033402 X-GMAIL-MSGID: 1791741281490033402 From: Kent Overstreet 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 Reviewed-by: Darrick J. Wong Signed-off-by: Darrick J. Wong --- kernel/hung_task.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/hung_task.c b/kernel/hung_task.c index 9a24574988d23..b2fc2727d6544 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: