Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp1035443rdb; Wed, 24 Jan 2024 02:56:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IEIjf+j7BrpEOw0a958W3iAUk4XxKrScAhn0cJ2Ftub0O6kOdGrdKTA3L99Fl0jVXZUdGCQ X-Received: by 2002:a17:902:d509:b0:1d7:8541:d665 with SMTP id b9-20020a170902d50900b001d78541d665mr408661plg.78.1706093818728; Wed, 24 Jan 2024 02:56:58 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706093818; cv=pass; d=google.com; s=arc-20160816; b=TQOKQ/FDGVJEan1eMYbmFT5SZ9jIE7JEIR8pGm89iRkzxrpMyZYvF79NCM3UNHCaOW MsT2+s2mXyDojtK9e91v/MrTJTOkhAAWfCGCNZA9NXiyrLTsjNpZCw3ifBf44MXgsA1C 3SNXd9DECT0N2yN1dnpSgy4gMh7P7So110+TahDn2I07QJjmszA+VP9DYR2CR3zYwB2E nhupeq5i3EZMDYtyDpnlNcqCU0eTPAeJXyHArRbmnS27dx92p9ZI7jRZSt/lhtAYG6R0 gKpdRE7Jh6of4q2y7T0JzTkExrQ3ru8HBwrngvXE33Bg1kO3VydLWlXUsd2x5nqP4u/C QZZA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=h1rRnTLYHHyGjDYfE80jFeJYwxpGt8nf+h9LKgpN5SY=; fh=iFdP5SvnlmJXqi9IoC5+uWbAsUDdxu0Qwk5gwBLQD4E=; b=FpnG+Ga2N8VmhsM89Kl7lNuETR2PuPGGHZMjRjwgsnuzp90ctfIl0e1/O+TX0nKWKN WeeIMVXNuBh7eMGmRg3OZ/mjpeYT5AxN/OCRj7FrDDwMpzPetbB+ZzkIq/w4oi50YY8G ma7JxcPepr28aEeERHgHEYy5oDtjnmUSNE5hQSACgP9df6YWuEiYpNH04mooYTGINRop xwizNRsHQjH8nYyqeuAc66n0uU2W7eZlXLBZvwt20xJQOtbHQRzcV6kpLBGoASk79I39 fb80ZPVTMobP7wVRw86EKd1MERehmiEJDUjg0WRYVmjkDwNdCiK1kp6CxkFHoO5qJjoQ 0fGQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=E6TMOfiC; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-36729-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-36729-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id n9-20020a1709026a8900b001d3a6cb519dsi11350712plk.543.2024.01.24.02.56.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jan 2024 02:56:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-36729-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=E6TMOfiC; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-36729-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-36729-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 7DCAB2937BF for ; Wed, 24 Jan 2024 09:39:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4DD7018032; Wed, 24 Jan 2024 09:38:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="E6TMOfiC" 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 543CE17C70; Wed, 24 Jan 2024 09:38:55 +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=1706089136; cv=none; b=XUyx9WYDY0nn0zLoxKm2+cGqFjFWLaiP7McoWbxLx3SluGQ5WblCYgDNLziLocZ6OZtE6V3a0DEdSQdBGUJ/UIFlDlh5em4inXMMxpwv/aCYSvuMshSP7Z3nklozChTPqSs0VlPnauIPswFS5HKwILupI8QSA6rz67sleapxNog= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706089136; c=relaxed/simple; bh=fNhhqm+G3nroxKDtOtA3vT26oCb4gT2b9hO812U8L1o=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=BgL98IDzE+Nwj7CmkiFdxoarLqrXfyug0L9nQMdvZg2ORWIr9fqiQ2+fErJnWTM+xoSgrs4UOogsxfN4e8fFJ6MVwDkWn5FEmcfKmM6fFl804au/pMkiY8bZNDoKVAjOVMxNfe3RlLHLawcuh1VFNzUnG5IzpEDimBytTS4BkDA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (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=E6TMOfiC; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org 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=h1rRnTLYHHyGjDYfE80jFeJYwxpGt8nf+h9LKgpN5SY=; b=E6TMOfiCzsGAkDDtCC5fTTbTJx GyyxsXMcwrpqq3JHXx7R09m36Xrz9sQIQBvc2dacZHCrhYnFF4XgR3Y4jGYOIXb09Y/m01hPtGK9c iut7Y1XNWtRDSBO8wGjOgD8gGpYfEq7HMUeD4o1ycIpehSUtXavHK1ITJYIGpP0enXwwBG4eGHGhv v9AC/SkAGPiPpOiube9QyDKoSTMEHbc5SciEl7s7H5PkrUxXV8rSHIxAiU2iHfi4LLPeVowy0kSCX tgqCmVivmuiQZYnoVba8aeddqXGLZ8i0nzU8pcVAhdKZ8yerjyHCHzIoIXQFzBHSOw7q2U7r7p7dk f/tUCzPw==; Received: from hch by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1rSZid-002Hrc-0N; Wed, 24 Jan 2024 09:38:51 +0000 Date: Wed, 24 Jan 2024 01:38:51 -0800 From: Christoph Hellwig To: Zhaoyang Huang Cc: Christoph Hellwig , "zhaoyang.huang" , Jens Axboe , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, steve.kang@unisoc.com Subject: Re: [PATCHv2 1/1] block: introduce content activity based ioprio Message-ID: References: <20240124085334.3060748-1-zhaoyang.huang@unisoc.com> 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: X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html The I/O priority can be explicitly set by the submitter, task and blkcg arre jut fallbacks. And as said multiple times now bio_add_page must just treat the page as a physical address container. It must never look at MM-internal flags.