Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2170860rdb; Tue, 20 Feb 2024 21:53:12 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVumGMcHxls3iG8RCB9kOvN7n+UD5O/8TMctjVuk+bdR4hztImoegySEicEj6ML9XFikgEQSWTlw/QgCX2XPiZ0ZCYyCLMUDG/G83tmIg== X-Google-Smtp-Source: AGHT+IELlVV1Krg+3j5f4mXfP/+/gOOWVaIZunojAfh36kg+dcTxUs5mTaNVgGUrifQErSVIjFk0 X-Received: by 2002:a05:6808:a8a:b0:3c0:32d5:e1c3 with SMTP id q10-20020a0568080a8a00b003c032d5e1c3mr14510658oij.54.1708494792296; Tue, 20 Feb 2024 21:53:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708494792; cv=pass; d=google.com; s=arc-20160816; b=GYwHmO+3Gt9EIzRXGvle+AsAu6IwvMmgdqUtdjJLAwDIxSnDy3SOuwvc1e3jj0D1qA ugSNlN6f8MZfblY+nnmKm11V85cEs+klpd+yeNF9J7MTIC0ejQamuN4lDKXQHhIDEm03 xvu8JqwkwKgbG1G6BkGP6L1Kp1fj/i9fXvI/tEpIztsdzDBi7XraUHfL8kl1Pyx7Ak22 4nBISpJ6Itk7XxI3O6hNkvGUtvpwu1tjwY2syKU4Z6EknfW9QzVUGCoTHJHWQdyqu5zl IEjC+CPDXiQfxq7RHyLeEMOoHpY6EuN03vxgm7k2MLwGFPcVqpkbHT+u7iFw4FYjHbQE XjNg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=9EYIT746ejxVhq9TPKIxFkAkE0UaYjU0Wm+93295Y4I=; fh=5AHq32m/L4tY7IhzMzKVnHL2LXf3rG1PfKf2awPcte0=; b=lgrp7gFcZ7pmXi8/ClrknxUhjKXtef2d2JtVUrbKUXorA1m63n8kEp/le6S9hB55vU AIHZCdn/Pq4PTMyUhCkbx6T82VW2baxZxwgKJFHsXjPN84tc5LRgre7Eox4RP8mozRDt OFymnl9IdZxuuqxvHrrMkBs2Wok/fJ/WUz7TkKrqBmFS7N3TBlTDZSsKZGt2fvF6bQVq I0mwJB8iNZEQgABrDa3lKApfpHYE8zsG4ISuYNddzmRxy6j6HNsQuWeI905NluOd1eMn jemzCK235rGhfCwrRm42O4d3FIHwOvUc7eeqPPMdiN/OmFHruyjxR07KYOpaReM25XWd Qx+Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rBmBb39G; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-74117-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74117-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id ll9-20020a056a00728900b006de1e26adb5si7350384pfb.275.2024.02.20.21.53.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 21:53:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-74117-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=@kernel.org header.s=k20201202 header.b=rBmBb39G; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-74117-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74117-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 417672866FE for ; Wed, 21 Feb 2024 05:53:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9748839FF2; Wed, 21 Feb 2024 05:52:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="rBmBb39G" 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 AB2B538F9B; Wed, 21 Feb 2024 05:52:58 +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=1708494778; cv=none; b=g7ujdowp1EfAET48VfmIiHnv37ZvjO5uJkmC7ZGAxbCXQekhc77RGilST2oJK4/fhW4n8rGgHTO3z5OeXGoy5+Vp8jJ/9ljL71FASxeK4nbKVw2OefJ5W2Ba/E4xQeJaeydESjDh3VY1/b30G/rkhJp1nlkkpaPwPKaXw9zB9kc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708494778; c=relaxed/simple; bh=/zkd7k96N4tcJWUeLIevIqp0tQF7/q7P9ifjzEPwe40=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=VcwXCDRpEs+NxY+u3QIQeIH2IgOwLH7OQVQXpSjKARM1iPVR9uBAafBR4sYuXoyqLQtZaBa6cKE1yf+dFeSEjKtRnQckqjkykuznphZf2rhv9H+YqUm59TEjZnUYYHegIbuMUij1g9RNcbbbx5gzx3+bAWDahKiBvqfmihTY1BY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=rBmBb39G; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 22CE4C433C7; Wed, 21 Feb 2024 05:52:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708494778; bh=/zkd7k96N4tcJWUeLIevIqp0tQF7/q7P9ifjzEPwe40=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rBmBb39GuX+FS9MGL5n70U3rBjmO45yVy0q+TDf3jwRAfH06i2SkR+BEJNHwOe2Fw NNEjWTYq7HCOs0CA1XAgMsUtltLVo7IZHBCmDp8EclKrKH0B1/LUbtXqReZDgdCJYO Ht7+dDxqdSTjyjruWX/EszL4VIabOYcrTJXYosTpvy+Ucfqrf7oNMGXxpIN+C0qcXq TTCvfhpwRnjxXesU+NM0ybsmOhpkuHZCqT2w9iOjqoJQFwfZPNuQZ2HCdzL+inaniF SXAash94SkZnqliS+ZA7DgEhzCTZe6muRqR4PC59ERBOE4O7xkJaq1YuPEluTvySl3 ciLW0u3Eq16VQ== Date: Tue, 20 Feb 2024 21:52:56 -0800 From: Eric Biggers To: Zhaoyang Huang Cc: "zhaoyang.huang" , Jens Axboe , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, steve.kang@unisoc.com Subject: Re: [Resend PATCHv9 1/1] block: introduce content activity based ioprio Message-ID: <20240221055256.GB14358@sol.localdomain> References: <20240221052624.573287-1-zhaoyang.huang@unisoc.com> <20240221054124.GA14358@sol.localdomain> 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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Wed, Feb 21, 2024 at 01:50:55PM +0800, Zhaoyang Huang wrote: > On Wed, Feb 21, 2024 at 1:41 PM Eric Biggers wrote: > > > > On Wed, Feb 21, 2024 at 01:26:24PM +0800, zhaoyang.huang wrote: > > > +/* > > > + * bio_set_active_ioprio_folio is helper function to count the bio's > > > + * content's activities which measured by MGLRU. > > > + * The file system should call this function after bio_add_page/folio for > > > + * the buffered read/write/sync. > > > + */ > > > +#ifdef CONFIG_BLK_CONT_ACT_BASED_IOPRIO > > > +void bio_set_active_ioprio_folio(struct bio *bio, struct folio *folio) > > > > How did you test this? Nothing calls this function, so this patch can't > > actually be doing anything. Are you planning to update any filesystems to use > > this? > Thanks for asking. I verified this patch in an Android based 6GB RAM > system by modifying EROFS/F2FS/EXT4's aops API which I didn't > upstreaming yet. I would like to recommend this to the desired fs if > this is accepted. This patch needs to come with a user. Unused code can't be accepted. - Eric