Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2167666rdb; Tue, 20 Feb 2024 21:41:45 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVoYuz1werpif1VRYGoi2EjVR0ddbhjhZxYlrxtZ6e8FgPIlBz0J0SbqWhEb43gQBbWXdtPdKMjtM5T48WJ4QjQVKE9PLj11vMRwMsLpQ== X-Google-Smtp-Source: AGHT+IHdkrCjVo2mwR1wHNttbvki+idD8nhJIImB779+/sPp//v7aCgojK+xfHYWo6H18mFfni25 X-Received: by 2002:a17:906:198d:b0:a3e:fd1b:3fb5 with SMTP id g13-20020a170906198d00b00a3efd1b3fb5mr2353141ejd.1.1708494104913; Tue, 20 Feb 2024 21:41:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708494104; cv=pass; d=google.com; s=arc-20160816; b=zLGxThyfU9bHO/r4uABp00FW2hK1UN1+O/8xG5vMygYQP8kEyvnJbDk/dBN2R6OGdL Bwz/yhb+i+4zFNpRNh3l4dVT7EDivPEIAKjHeZ+KIJALTBHr91WmANmDiJMbGsjdDPFs DfpWrI5C0VS+g6pvxXZ5Gv9/jKL2IUzK5ArG93V1h6hJKEPAl0Uo1bYT58g6Ik+LmGyV 043G1UVvWKhVARqqI3VFObNIvXCG6wjgSXt9rt3h6+OwqmtpfiHU8N2t/K5Hyn+4Ubzt 3cRfdiSdoL4eCEdCXmffstZL/Jk25zcsGhIXZ16SQaj7dlyT+i/jeJzEsVastPGUrTiT UqMQ== 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=JMci4Ic0dTIRwctDJshJc71vwuWrgJmWR5/QfBtWNZ0=; fh=TR7i+agldAOc2zjDTxMbx0Qykyilpioc1nSjxmd8mB4=; b=mt1EJOZ3a/zxbztRlJRfmO0K/qmi+3C5PpcEmOq16K2M/BbAmdf3lceC3dBkUVIFEJ 7/Iqmf/Hv5trqkSq0uIl/Xf5Wo2kVjrkRPUXlhoQ/DlPaIK7QJwwxr/FkWE34ORMtn5d /vzxbFisOcN0538pa3uqYd8Neps8JL4+gMe4Fciy4/lZWJx0tengLLZNjpzLiDrJheyr BkQEfy/a4aU/yMdBHdoSaqDa46+LPFPX7TJ2cG8uPt0j7Xsa4eiB3/j1wwtBSYg8g4tN bTtqZ/PTa1A4MyorI9V4eVFK/PwBRRP6VJyas589h+pKQpYqNbUhYApT1DlO/89wiDln MnXw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nUhohgDW; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-74092-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74092-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id i17-20020a170906251100b00a3ebecae05bsi2216347ejb.797.2024.02.20.21.41.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 21:41:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-74092-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nUhohgDW; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-74092-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74092-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 am.mirrors.kernel.org (Postfix) with ESMTPS id D0DFF1F23B07 for ; Wed, 21 Feb 2024 05:41:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 095E339FCF; Wed, 21 Feb 2024 05:41:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="nUhohgDW" 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 2A48215A5; Wed, 21 Feb 2024 05:41:26 +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=1708494087; cv=none; b=MeyA79TTWaargFQDA/8S44YoFnlVB/+gUKgh9FSF5AScukUODUoj1C9aK4B8DrhFUHNUT4QeDAwLvl0rfnSXjM8y2DwNjetj8NgDM1OvsTgpRmzJvlHJ4sm1QJFgcyoSjN8LmrpUe+nJvIIUwPlulZTYAxFTxcdGWaPL6W2fX6E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708494087; c=relaxed/simple; bh=PFv5dcclqc5fxx24pQhxAqGrKur7Dj/gyayYbUFSDqo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=d+NIRyQZqjCyRRi/YgbtEjTD2L27w6bKwXchEuu3DOASG8AGrRmasEJfjbSv4TCC/RH+F5XT9BeootXm+LleV195r9e9x2Mql+d8gWd/S2x1MTWXCpvvAiXp6+kI2wkGEFfZTI+7ntmgm5fVhBpPdgRqlexWrOgCJF47uEfosrk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=nUhohgDW; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7C3E8C433C7; Wed, 21 Feb 2024 05:41:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708494086; bh=PFv5dcclqc5fxx24pQhxAqGrKur7Dj/gyayYbUFSDqo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=nUhohgDWo8d11YY3Om7rAXNZBi9f8bLS934fpkbSivLpblFQW2I6lLTpedbpDPZCm qbOVqJB+oA5DOmPUC6LZesVBVbT8PK4gXBT55geg0hbtL1i2mq+C/5MZSXSzzPcqLT lv0ljBO5LsZextn/f/syOv/Jw3n69J8Rw12Sf9iQnbq9YzNNlI4C5CSQbc2PGth2KM moaocIda/dEhxBny9f9ID2EP/M1NSqN203Xtko167s6jZzdUaPSjODkUaW8CdXIeJ3 D+9kVHmmGFArBuI5r9R+UJ+S6kpx9iColYsAhGc84rL1uZarYk931UdQvyrYg6rWez bxJQSAaNUIUaQ== Date: Tue, 20 Feb 2024 21:41:24 -0800 From: Eric Biggers To: "zhaoyang.huang" Cc: Jens Axboe , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Zhaoyang Huang , steve.kang@unisoc.com Subject: Re: [Resend PATCHv9 1/1] block: introduce content activity based ioprio Message-ID: <20240221054124.GA14358@sol.localdomain> References: <20240221052624.573287-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: <20240221052624.573287-1-zhaoyang.huang@unisoc.com> 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? - Eric