Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2679735rdb; Mon, 5 Feb 2024 14:17:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IGLHImMiugBQW/A4B8H9eiWXvdYJMKuzGVUiJpCHTmqtVOUQ5W3hNwWN2f4bBug7JaeQTBx X-Received: by 2002:a37:e115:0:b0:785:8b5f:dcbf with SMTP id c21-20020a37e115000000b007858b5fdcbfmr602481qkm.53.1707171450645; Mon, 05 Feb 2024 14:17:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707171450; cv=pass; d=google.com; s=arc-20160816; b=KP6c+GSi3UhXA5NY9UwH9mB30RFDZS9uBygx5pr7rnxLAvkW5tTNGqOTzYX/1++pnQ vsj7zpkrpDDfwrYwa3fY1fxRlmegfWQckOZV9XWPbgyBeKK/FEllGAu4mG2Xb8WK5z2R 7dtIlv6P697vvhMUk3iXZZxbDthSi24kihk6jB9bnV15mBrgv+V1tCZ0Tx0FVUcld02y uA6xDU+F/JM3B/TPddsiOzOvsx2rm/9+pfjW7ISSk7CJKBI33n+AlqMe6raCOpyvE5HW FUOY+YSXyvpOw+oHTyfav5h03pW60/T+b987SDbuew+3royoN3r+N/lEUPRP6+XOfpBf efJQ== 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=WwVddD5SOQafzot7tI9REXdsEtho3qPgU310yej4F+4=; fh=z3JBuDuk4SeAhz8CRmBvj7OtXxKOWmuTSmuF+rxs+uc=; b=K2cjY4rSV0JbIwIdWRJEHqANZSKf57qyQ8QFMrN52zqX/GH8eo3N0+RGSEUt67XfOq cz9pVquH/WqLk9pnZ7kPOcNtHk/LExC8BDVYPhzCSIQqzHZgSPUjFg8FiS/DJa2hv2yh 4dI9CnPLnjpTK5IqSElZpqMvueMe7opBRr58DFlvbRiZFaSOxztI6fkgMq4slNjckQzv MES6tJaoBqZYbrfDTNaFF6QBKdRDuSea1rE0z8XqbKni6YG5jKzoeAryyzmDt6dzXLQD MNUnnfujMTa75nktgdC1BvwrNKoivxUC4w9vD9X8j587tKLGAXtxqbkNWueDB/nZ6oda aOdg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=I8KQ+NgT; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-53998-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-53998-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCWaPakCen0kjEi5DxBilNUHc47H1j2uEqvr0uB+bE0LJb0CBcLSwGGrrRlGeZCPoKvqfiVNOO4YmjDKGN5GplfbVb8ouT7e7GR5Slccog== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id qb4-20020a05620a650400b007858a94d5a5si891398qkn.291.2024.02.05.14.17.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 14:17:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-53998-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=I8KQ+NgT; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-53998-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-53998-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 5F6611C25162 for ; Mon, 5 Feb 2024 22:17:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C70734F5EA; Mon, 5 Feb 2024 22:05:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="I8KQ+NgT" Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) (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 0A6D81AB7F6; Mon, 5 Feb 2024 22:05:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=90.155.50.34 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707170726; cv=none; b=m91uCsZCJR0n6/Sy8WN4oDdzccfFW8TTpb+66z0LjRd2DYtpOqt+/oI+eG+7weGc64szfB3daPZ9nP8aOTir0oSitE/ER+CVTUgK149zzFAfArZ1vZBzZ4AzscZp4uvkg0HV+jtMpNdm5e418ZiNMzaA0Hw+5OcEv7VZPhb2N1Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707170726; c=relaxed/simple; bh=mBdzkE+dp33mTXyDUdaiNEDK3SSO1DVF+TPuTY5o3bc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=CCxl+0udE0hF04EQsMAxve5i+gNobjlXy6bkc00KXukLyZOHjy1llDgs30fkEtSL7mjdxGFPZ5F4cas5HXQbzitjKW1kACYoAuQ6zPeSK4k1fe0XJvBAeO3YvIa+OVsVgAJWB7fxi7+zN1E537VNUB9xlX2hl0aKE6PyWaapEVw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=I8KQ+NgT; arc=none smtp.client-ip=90.155.50.34 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=infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; 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=WwVddD5SOQafzot7tI9REXdsEtho3qPgU310yej4F+4=; b=I8KQ+NgTK/KRyZh/oh61Htpb6h j2FTtGQDXzqQ3SUSgEslu5u2GAeHi7efAyxkRPREs/xdYXxW2B9q+Zb1mXBwM9DCQkfRE8Hgv9Sxa +sGgkYGZ1RCK6vr5IjXoE8djECJ9f9T3QTN7uOQVJQcqrvLTm311gDHBnLmqSrOIYnBfqu8CfzVsA aOafL/rx1yGo3VVJbkdZBhTXbpSddd1t87jNZOmlIVAWZqM9TAPwJqDrabfOtE0fOTrAh+/bXG+fk /H2vsxHhFI/Eyajk3p7/5XqMfFHNzFaaP5I0q9FdbAJVAa7H6KRDbsZnkWdZ8PGGxJoajPZFFwfQ4 kxI0r0kw==; Received: from willy by casper.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1rX75T-0000000AY5h-47CJ; Mon, 05 Feb 2024 22:05:12 +0000 Date: Mon, 5 Feb 2024 22:05:11 +0000 From: Matthew Wilcox To: "zhaoyang.huang" Cc: Jens Axboe , Yu Zhao , linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Zhaoyang Huang , steve.kang@unisoc.com Subject: Re: [PATCHv8 1/1] block: introduce content activity based ioprio Message-ID: References: <20240205090552.40567-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: <20240205090552.40567-1-zhaoyang.huang@unisoc.com> On Mon, Feb 05, 2024 at 05:05:52PM +0800, zhaoyang.huang wrote: > +void bio_set_active_ioprio(struct bio *bio) why does this still exist? i said no. > +void bio_set_active_ioprio_page(struct bio *bio, struct page *page) this function should not exist. > +void bio_set_active_ioprio_folio(struct bio *bio, struct folio *folio) this is the only one which should. did you even look at the implementation of PageWorkingset? > +extern void bio_set_active_ioprio(struct bio *bio); > +extern void bio_set_active_ioprio_folio(struct bio *bio, struct folio *folio); > +extern void bio_set_active_ioprio_page(struct bio *bio, struct page *page); do not mark function prototypes with extern. > +#ifdef CONFIG_BLK_CONT_ACT_BASED_IOPRIO > + /* > + * bi_cont_act record total activities of bi_io_vec->pages > + */ > + u64 bi_cont_act; > +#endif what? look, you just don't understand. i've spent too much time replying to you trying to help you. i give up. everything to do with this idea is NAKed. go away.