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 3CAD23A6F05; Tue, 3 Mar 2026 15:03:58 +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=1772550239; cv=none; b=U+wRv52Z0/1Or/EXNtYOx2wjQKqOWYKhtav4pRXvTKZDsa8B5jDkDdtK/9Cho5cQnn2hOLi18CmPpdLIfxNsBM08nFPacUeW6IlNGwVD2xzaDDqlrJHLXTv7q9AWirwIgctG0SsU6NUXwH45CH9m6RDvfyojxrGJZrO4SyVqEKc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772550239; c=relaxed/simple; bh=xQ4MwwBTyv6ir42l8C/d8Ouhrf7Z+TViTi/BKlBMQJ4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=q7IisKqKFiM2/yOHtVFD7FdL5HHOPAyaAr1Pl+OXSTCEOaSKTBtC2Y6Hk1wajJvgYYxCVLt3yM38kcP8z8haIbNUD9maCYFQCzoMvxUvo3JEjEI3+N0KsoQ5YliHH35GrBcGyMDKmHMruFz/2DhUk4he+Cxhx30EDTPQ/982Pe4= 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=X8mUOnY0; 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="X8mUOnY0" 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=TnBSg1RQiukxiIiBxgvGRyLSQP15gIjOttwNVAHtB6w=; b=X8mUOnY0LU6sUwkF54gNY28ZLa X7ZndnWMBHMu6NBc+I1pfXD6WJV8eoA/v9PNz96ial20jCXTnvXbHApcpLxxjVczP1xP+2zwTShso 6rzWonkvJHADxN4/zHhc6g8n8ymlHgiNfZZ5cmHVUUp8RUZ/mZBP5jwX5tQFUOX6QJinDa03NzHBl U1fzP2Hpt4JN1oP/6615e1WvBkpXJeM2Aw6xfXM07aEBChslhghjz4tAcms/5wc5w68VQg916vE+/ w3qQvBkmhCu2AauFH6rXT7OhpOtSp0VT79xrfxg6H+JEfexEfwIog6MAYCM8yqhREo/1mMRZf8vb/ KAd0AZ9g==; Received: from hch by bombadil.infradead.org with local (Exim 4.98.2 #2 (Red Hat Linux)) id 1vxRHx-0000000FNc7-33xC; Tue, 03 Mar 2026 15:03:57 +0000 Date: Tue, 3 Mar 2026 07:03:57 -0800 From: Christoph Hellwig To: Christian Brauner Cc: linux-fsdevel@vger.kernel.org, Linus Torvalds , linux-kernel@vger.kernel.org, Alexander Viro , Jens Axboe , Jan Kara , Tejun Heo , Jann Horn Subject: Re: [PATCH RFC DRAFT POC 10/11] tree-wide: make all kthread path lookups to use LOOKUP_IN_INIT Message-ID: References: <20260303-work-kthread-nullfs-v1-0-87e559b94375@kernel.org> <20260303-work-kthread-nullfs-v1-10-87e559b94375@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: <20260303-work-kthread-nullfs-v1-10-87e559b94375@kernel.org> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html On Tue, Mar 03, 2026 at 02:49:21PM +0100, Christian Brauner wrote: > In preparation to isolate all kthreads in nullfs convert all lookups > performed from kthread context to use LOOKUP_IN_INIT. This will make > them all perform the relevant lookup operation in init's filesystem > state. > > This should be switched to individual commits for easy bisectability but Not just for bisectability, but also to explain how we end up calling these from thread context. I suspect in many cases by just undestanding that we could get rid of it entirely with a bit of work.