From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 3BA2B32FA32; Fri, 6 Mar 2026 14:44:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772808266; cv=none; b=kdF/ChNNRFn8O0b/rOOJnas/MUELS9Rfy/fOIEDEVO/2fFgjaSXp0WszVnn3PxQBC6OtjpWymyiiwA2Hm6jzG8DeKzBdBKzc7ku2BzBqqqeNqHYVSwxDvwARnQGtNpNHDE9GI1pb7zxf6bR0Z9PCv9VYx1n55iSQTbjA1LVnrrg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772808266; c=relaxed/simple; bh=+VBbq9UzaWur6twhDuNiRG4r0DAb13yn7dE5RDQcjgs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=YYTrOwdV7VSYvJsoeh6xYqGHr42ezuSJKPA7gLjheHnshAwz5RVQHfdpjRD+zz/BOlkfyRhD6wq0wFxD7Uvq42c+YRctgA4CpxVEFN0azhQSw0XYjX86Zknl/cw1qM7MgptgggPza9YyQ0YrTfSBl63EcS1DvSUPqV3G4uEJmMM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=JA3XqE5u; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="JA3XqE5u" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=VWTkm0Py2p+wz88VT9Hqx7K/ZonBVtOJH06852VoXOU=; b=JA3XqE5uFcQXjgS48gQNz00qJQ V6NvzQnPz0dLEfUkFr6v91VHgvqcg5qfgsoKf6PeQilDqsM74PycLCxKcCQqxgy7Jba0gDmqJ9JW/ NgK8svWPdbhmbTxM1IGW96Fl6Q5kgptn4+UTY5wCSPDZtAQEujRXAMGdueLxAtYhb1ljA0njMsjNb +9MUzvq9pmf+eFyCsW2Q9xkXMkRXFPboxXXeoTwz2NEq0K/V4NCFal4zl9+n+sFeGpUOYFRuPx9yg lzWCi/8DbTfProMdivYKbTEcubS3vegmE9ppiQTpM1Fh1ummPCx2i3rzFS4cqVDuqtbOaCMDkvaqB hoof68/Q==; Received: from hch by bombadil.infradead.org with local (Exim 4.98.2 #2 (Red Hat Linux)) id 1vyWPd-00000003xun-3YXy; Fri, 06 Mar 2026 14:44:21 +0000 Date: Fri, 6 Mar 2026 06:44:21 -0800 From: Christoph Hellwig To: Christian Brauner Cc: linux-kernel@vger.kernel.org, linux-modules@vger.kernel.org, linux-nfs@vger.kernel.org, bpf@vger.kernel.org, linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, Luis Chamberlain , Petr Pavlu , Daniel Gomez , Sami Tolvanen , Aaron Tomlin , Chuck Lever , Jeff Layton , NeilBrown , Olga Kornievskaia , Dai Ngo , Tom Talpey , Trond Myklebust , Anna Schumaker , Alexei Starovoitov , Daniel Borkmann , John Fastabend , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Brendan Higgins , David Gow , Rae Moar , Christian Loehle , Linus Torvalds Subject: Re: [PATCH] kthread: remove kthread_exit() Message-ID: References: <1ff1bce2-8bb4-463c-a631-16e14f4ea7e2@arm.com> <20260306-work-kernel-exit-v1-1-8f871f6281cb@kernel.org> 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: <20260306-work-kernel-exit-v1-1-8f871f6281cb@kernel.org> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html More a comment on the previous patch, but I think exporting do_exit which can work on any task is a really bad idea. I'd much rather re-add a kthread_exit wrapper that checks PF_KTHREAD first and only export that, which would obsolete this patch.