Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp1215901rdb; Fri, 9 Feb 2024 14:13:32 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVi/0MzyhKjRezaGDwSY9fcI1YIzdxdzihj+Qp+dRGXbY3YyyA8QkvE6F1EA+p5NaKaxOc89yjdjF77WK8G+mtxCTumgqFlcVqVY4Y8Eg== X-Google-Smtp-Source: AGHT+IEVlFCWLtCisQs3hPLOOCvgnI3q2p/rJvnEyDet5gfxZYLyUKlReH8GtpeCisjVXsDLh0Cs X-Received: by 2002:a05:6a20:d819:b0:19e:8866:9e56 with SMTP id iv25-20020a056a20d81900b0019e88669e56mr3814331pzb.11.1707516812487; Fri, 09 Feb 2024 14:13:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707516812; cv=pass; d=google.com; s=arc-20160816; b=DzQ90RG3RO7LBUbTBQq57C6IFRJHBK0fppZ3g4X8kBobcZ7/p+DjdQ55aRhe0vXliF oOwOXaVb5ODUMfoz2h7I7MihIDkEFw/rk3p8GsEwpLm3MvmjeDw2ZLRdAGHNqdEcKtT8 x7UQH/na5LUnVmsTUSsQL7VyCIE982LttzZjG1Fpk9wORyvqb9pU6gZdN1tz+9uTxWyo cNNYwxJxmTiQQU9xyAo5LpUTp9Rpu/6G+x0MOCd5pipcJmT64ffSfI0lpFgS7zNAOAes GFdwUeiUOAzCZufGzgYXPCgrvi2SEUSaY4L/ijvQWjSC7cHizUIE8S4IL/xeUaKnymW+ IxQQ== 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:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=SzfREQqhDgfR7NMNNbWTHU/zl0O4mhIdj8Zts40NIzY=; fh=gjmKr0AuhZ4QPknX23MjsKeX2O4s24kKSSS0nsxX5sw=; b=oxPrBjnaUF1jZwkoL0uB+EPL0kkZ3EdkqAKQs+mrXyIn2nJD1T0m98Zhn1SrdXRcOJ 1L+t52kemza+mZbRlkPy8pj4jOizwA3IB0cx7n2InqS48IdaZViQ9y+wC9x8CD0+d1yL 8ZwdInPwLz7NlbrhZCpwC1f6cCFhAXR5bOP+2ZqILshn2Gt2Jne2Mdqeu9Hr2SeIr/Eo mLoD0fAERA78zRBx7UDGDlFyOHJos2Zr3wNc6f7kFFveHfy/aEdyQWq5F54NpnGrvJOI XaQ9v5F53ooFt7MbyR6nyFCeyaWfto/2fxdDToaIcrKTp69fHSLZnNG6bZGQ+uH3KT62 yQhA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=jZZYKmSZ; arc=pass (i=1 dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-60070-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60070-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCXKTkSV5EGdgopxO8iEgxFxaBcdqmsA08UwlTAnpLXHs7pILN0gzdAOq+hZ8GlhgjsykhFsLj1Wt6gk8qVnNxF6lGawZZoKAh+POPXzxw== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id dq8-20020a056a020f8800b005dc42721eb6si2391519pgb.465.2024.02.09.14.13.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 14:13:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-60070-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-foundation.org header.s=korg header.b=jZZYKmSZ; arc=pass (i=1 dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-60070-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60070-linux.lists.archive=gmail.com@vger.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 25DAB2835C6 for ; Fri, 9 Feb 2024 22:13:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DCC9724A18; Fri, 9 Feb 2024 22:13:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="jZZYKmSZ" 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 0ACBA14F6C for ; Fri, 9 Feb 2024 22:13:25 +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=1707516806; cv=none; b=RjBhd+X5/RdYO5qRN3jtsMTZ0NS1I0atMzURgXn2R3Csi3Fg8nTgcArXASW4HSCUGoZwSsvT4yWrpblgvI/t4xo9FNuQReh/zPZxsxh2XXk7calXBZz8tPoSbdm4p+ZaULOZ+4oP+T+yX6ruyHPFVDWzOIQuneZFdn4ny4TCHoI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707516806; c=relaxed/simple; bh=xDYbd+DGzLF4NRgDCcI5oy/Gg3q6BXcvRGOTITka09Y=; h=Date:From:To:Cc:Subject:Message-Id:In-Reply-To:References: Mime-Version:Content-Type; b=s/NvDt/YnETVp98LfHCIyyrbZrlycrMkzwzrWB39eQMsCcDSv7A8i/4xyBCfWI6T5UBzASUBf3u3YB60tHIM7npo9A3Wl+C6IVKc3/CRvTCRj00tc0Fsz45qJhUtb1sx7vAiBVt0YJlY8mRP519vOsl+jlC1QaUGw3inWBiigyk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=jZZYKmSZ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6A3EFC433C7; Fri, 9 Feb 2024 22:13:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1707516805; bh=xDYbd+DGzLF4NRgDCcI5oy/Gg3q6BXcvRGOTITka09Y=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=jZZYKmSZwEVkeSNrzlDR/rmu9PIg6eib8zzw63E+9YVy0+ptXVUMMNZgN29G3b3tJ dtdMHi8RdCi30sdnA3CJ4rie0jgstN9FqPdcn1oHtARMbtbOMa34GCjjLB6WVKn1mE SXc0T/75Fv/GWI74oE7HEcx5Ll1zfrfnw2+lwMbo= Date: Fri, 9 Feb 2024 14:13:24 -0800 From: Andrew Morton To: Kent Overstreet Cc: linux-kernel@vger.kernel.org, fuyuanli Subject: Re: [PATCH] kernel/hung_task.c: export sysctl_hung_task_timeout_secs Message-Id: <20240209141324.28cae36fe14c909058c1fed7@linux-foundation.org> In-Reply-To: <20240209070935.1529844-1-kent.overstreet@linux.dev> References: <20240209070935.1529844-1-kent.overstreet@linux.dev> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) 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-Transfer-Encoding: 7bit On Fri, 9 Feb 2024 02:09:35 -0500 Kent Overstreet wrote: > needed for thread_with_file; also rare but not unheard of to need this > in module code, when blocking on user input. I see no bcachefs code in linux-next which uses this. All I have to go with is the above explanation-free assertion. IOW this patch is unreviewable. > one workaround used by some code is wait_event_interruptible() examples? > - but that can be buggy if the outer context isn't expecting unwinding. More explanation of this? > --- 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); It seems strange that a module wouild want this. Makes one wonder what the heck is going on in there.