Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp1612795rdb; Thu, 25 Jan 2024 00:20:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IGv5OQ8kHDtKf50tL91Z4+m6CVviMfvFrioT0Lp6PTz2lJZu+wkM6odY2j4q3s3wyV8X6af X-Received: by 2002:a17:902:e548:b0:1d7:4398:1611 with SMTP id n8-20020a170902e54800b001d743981611mr456621plf.81.1706170801415; Thu, 25 Jan 2024 00:20:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706170801; cv=pass; d=google.com; s=arc-20160816; b=Pv3d4/MqLTCfrOPjABRoh3qRDjCLBhi7GGITJVF4OAalFc8SykxxaA9NwFCQnbFhiL cDgAHIHMepqvv7uuxKaiyNMZJ/83wQE5DvtlTh9Zxar89NHxO5Ol2kNsImurj0G0t55D oeBHZcYZDWbACxoPBUpqPeNSO3lFhCvfLwGSTKuUNpBtNBBWPtLDYjcwH0Tt6MSq8rjR x+oZWCkpyRIw5odKihzeWRUGJxyTo3UgfNn0jf+1qkGBah4qnV/4at6hZnrULOT6MBjo E8yLMm1T1gg4t6EmBhf0LGwBBcwRAYMAl3sLfzQzelbwUnITfcSXQa0akn5y1iJvtHyU g8Xw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date; bh=lgxel5WDlQ20axG7jJBK/KwhDonprsLRs692KXWX/Vo=; fh=SqdCPmRlz7tPfu4+j/t3UZ1xspBe8XjcDg7rzw0QAy4=; b=c107Zn8TWT+Bw6wDefaJT03kysyjduJrLXQUsYNOKLKpbMMymdYEDC6NC5ci2UVBcG x7cOBwxe/VmdCpv7QygMBoQiwKiylQb8CQRh1QtImG68nGnLrSdG9HCiXmwBBb8/s837 7D/Sj3ezm35c0kDBsU8J2iIB/hgX09/1sNlwekhqkgJIxle+T4i4AdhwnjW+7xzvlzx9 Qj8LahDnMpapZ1G1rTrmtLJ5jvxhlM9RrScUvaL1tMmmZt9HnI9+4AcXKTmbbpJTYAsJ JT3XiZt37dOnfgq1kgkodtFsXnMEIx8j7loACukEGA5cGOjdKtcDRdfCwZOyO+omNm/E GE4Q== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=lst.de); spf=pass (google.com: domain of linux-kernel+bounces-38137-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38137-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id k5-20020a170902760500b001d75ee83da3si5586131pll.431.2024.01.25.00.20.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 00:20:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-38137-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=lst.de); spf=pass (google.com: domain of linux-kernel+bounces-38137-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38137-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 142DFB25E68 for ; Thu, 25 Jan 2024 08:11:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2E66A175A1; Thu, 25 Jan 2024 08:10:58 +0000 (UTC) Received: from verein.lst.de (verein.lst.de [213.95.11.211]) (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 186981756B; Thu, 25 Jan 2024 08:10:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.95.11.211 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706170257; cv=none; b=Tf7KUKiYU7LdSjdv+BxcOQw6kHqcEPueK3ThDfO+mj77Crt2aawUk5/J5zuMbIUhrKVCJG4Ws6ZJNk1J8XsBMor1hBpnkMheYaTwY9h+a+7Ho/9Z6pJ3AeJ65n5rsa7h1b7VaXyLiONoW1n5iVkRtXPRpOKtEIl0M+tp0pV7k8Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706170257; c=relaxed/simple; bh=cIdPxH2vkyKy+0ZVR3QifIcpYvOOFuiDKYqG8t4FD7M=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Zl3VCUcA3RHLApiQUSxBbOB8JUFudJNQrPLnVNyIY45e62PoTnJr/pkDZ2tCgJea4SKkWNN5iTRPywfVOwtYd8LD7hHYPoOu9DIo/UQ6M5B+DYIBd7eB05s9/0UMopGOusAyM62coOTWGuKmuJv4Dl9ufEsPPya3kXNN7qJEPlk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de; spf=pass smtp.mailfrom=lst.de; arc=none smtp.client-ip=213.95.11.211 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lst.de Received: by verein.lst.de (Postfix, from userid 2407) id E75D667373; Thu, 25 Jan 2024 09:10:50 +0100 (CET) Date: Thu, 25 Jan 2024 09:10:50 +0100 From: Christoph Hellwig To: Jens Axboe Cc: Christoph Hellwig , linux-block@vger.kernel.org, tj@kernel.org, jiangshanlai@gmail.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH, RFC] block: set noio context in submit_bio_noacct_nocheck Message-ID: <20240125081050.GA21006@lst.de> References: <20240124093941.2259199-1-hch@lst.de> 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: User-Agent: Mutt/1.5.17 (2007-11-01) On Wed, Jan 24, 2024 at 08:40:28AM -0700, Jens Axboe wrote: > On 1/24/24 2:39 AM, Christoph Hellwig wrote: > > Make sure all in-line block layer submission runs in noio reclaim > > context. This is a big step towards allowing GFP_NOIO, the other > > one would be to have noio (and nofs for that matter) workqueues for > > kblockd and driver internal workqueues. > > I really don't like adding this for no good reason. Who's doing non NOIO > allocations down from this path? If there is a non-NOIO allocation right now that would be a bug, although I would not be surprised if we had a few of them. The reason to add this is a different one: The MM folks want to get rid of GFP_NOIO and GFP_NOFS and replace them by these context. And doing this in the submission path and kblockd will cover almost all of the noio context, with the rest probably covered by other workqueues. And this feels a lot less error prone than requiring every driver to annotate the context in their submission routines.