Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp537756rdb; Tue, 23 Jan 2024 07:13:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IHlMuTXrCmqNuUQefWt3ydoaBr8iD8Ecs860Ey5SsafAQa58wvvX27GhOAvny2uE8Wc3ZQw X-Received: by 2002:a05:6a20:4392:b0:19b:680e:ca64 with SMTP id i18-20020a056a20439200b0019b680eca64mr8907808pzl.0.1706022814482; Tue, 23 Jan 2024 07:13:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706022814; cv=pass; d=google.com; s=arc-20160816; b=LYEqNgVCOPBNNWUG6RJfVq7pte0VXEfmmA3DIAuD2g1zyIVm8bxhL4/B6XD3PctrIr uj5SnaJc9aluS68tIt9+HVxOETCAous1HgQJB7t7sCE9UX0SzITKiEr7QszR1bV7HoUU zMFG33iHJbtbL5v6VO5uhiEGlx/FUwiqxwRz4tvtSWDM20kVrhBGURk0GCbcEDy0AZOz fcprtNdtScguJ5xIZickYOzffo0BrvrV22DensBEb5H3gwBxg9w0SIIR2JS90ZZsBxbd G5uedc71FXjFIx1S7dcLqv6atsDX+AnMPUAlKgdAeXhEYhDnTZBcyDPEyYPnkyHuLsSj BPDg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=pR/WckuwdSJfMEWLdLn8merKply6UNVDy0QMROF2vEQ=; fh=qK7Psf0fhaw0V9B15n+LZOaJpbJK7zDz1gW1a8fWAaI=; b=LzRZR0XQVgWEZgsVEOIQjWk7uU8dBfSbHudYkTW+wD6Wh9zolnMZEcvTIEx8k/EMY0 yGo9RDbo+OGWMmsifHwagLjbjeFWrpPSLgizMuBYAL3b+7Z7HVgRVcvQKfrHyOiTMp7D NRI+LLz1nmVSIPL2rAqsRkCUIF1+EvuK9pBwhN3TtTaIvR2/U5VTHRSmPCPLqttwS9yC 93qS2g+deZLfWavHfqPEuzdvLgXyYp9o5P2SxA9sIhQ4ehsyhDDFWkQnmJn4z/oOT9Ei 0XR6idlbW4/KhPWDQqQaPVjwh9BZb/0ULxtrxOwts2awyikI7gmP9fsauM2UQ9wnXck5 srIg== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-35515-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-35515-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 c13-20020a63d50d000000b005cdff1f4821si10002744pgg.362.2024.01.23.07.13.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 07:13:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-35515-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; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-35515-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-35515-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 240A3295B5E for ; Tue, 23 Jan 2024 15:13:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C2E5C5FDCB; Tue, 23 Jan 2024 15:13:17 +0000 (UTC) Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1200D5F858; Tue, 23 Jan 2024 15:13:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706022797; cv=none; b=uo5g7DvdUALsht1Eu4WTty/c5AgUycBGd20t56f10w94dLfpeV8tHM+/RWqXUvGYyC8Lq4B6k323G0+onQE8umA2EOuYzDe/p6B0wQmFXqtS9TOtARnK3mx6v7yqN85q0hA2x7TWMHQ1pdl3XCbXgcpLitppL1izJRZX/XBmRSk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706022797; c=relaxed/simple; bh=u0Leg9PiHF+SJm46VLNcoF7rGsCiIovBve84jf6JUr4=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=bRAmcLe/JTvmR3SX5m6H9EPuV+oLM7RDBOm9kAaEJBCNnGa+sxPJ7IFVG4/Jbx4gWRJ4qLVT9gB6uI98zRXJc1rIfJg3Rgox8GevKZW0fL1oH1GDaKzgy1qaJceJosmvHH9IkmnesrgQ9MEPOCSftT1ayvlljG1C7lf3SFs0cHE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=acm.org; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.214.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=acm.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pl1-f170.google.com with SMTP id d9443c01a7336-1d75c97ea6aso13690285ad.1; Tue, 23 Jan 2024 07:13:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706022795; x=1706627595; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=pR/WckuwdSJfMEWLdLn8merKply6UNVDy0QMROF2vEQ=; b=hj/8efLUIfnnQdJVAQ5ru7DyDZqm1N7zSFByLZ2F9UNwo8mrDh2l01KWf7Vk1mbJgN 9UJQEKbkCaODE3fCJdmy816e1bzXQXYQCzm0vqUtpNfjSGN6B2Of4D733GljA63Ve+ZH GpmCgpxjVgFTpFt6BID8K58LKr29PXYIShRj/rm+I2mDsQF2KR07AYJJVueq9vgl0GfO mFXAGSOO/k0vNB7Q49ZnPGfa++g0Zc1Qr9PKuuXCiiEZYYl069oxYg9+7VXJgEeM5GNB s/gkh3DLffJLB5lBN4n1Toot+gI130vqfv39aHCXTZFu5cpCnXnDy9WmggIGJnh+eUA7 K0bw== X-Gm-Message-State: AOJu0YxeFdUvqhyY7IVyu/9Ss+vliZQxDxYUdhdbzs/iV5Kiyq2ADduE k3gSlFMknM6C/16cvsrzyNDXpBPqhwjYWyNLiAzROQ9S6zWPgI2c X-Received: by 2002:a17:902:fe0c:b0:1d3:8bf1:9add with SMTP id g12-20020a170902fe0c00b001d38bf19addmr7820844plj.36.1706022795040; Tue, 23 Jan 2024 07:13:15 -0800 (PST) Received: from [192.168.51.14] (c-73-231-117-72.hsd1.ca.comcast.net. [73.231.117.72]) by smtp.gmail.com with ESMTPSA id b5-20020a170902bd4500b001d74c170f2dsm3853359plx.90.2024.01.23.07.13.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 23 Jan 2024 07:13:14 -0800 (PST) Message-ID: <9154bfb7-851d-4144-a69e-1aa25b72e8ad@acm.org> Date: Tue, 23 Jan 2024 07:13:11 -0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] block: introduce content activity based ioprio Content-Language: en-US To: "zhaoyang.huang" , Jens Axboe , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Zhaoyang Huang , steve.kang@unisoc.com References: <20240123093352.3007660-1-zhaoyang.huang@unisoc.com> From: Bart Van Assche In-Reply-To: <20240123093352.3007660-1-zhaoyang.huang@unisoc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 1/23/24 01:33, zhaoyang.huang wrote: > + activity += (bio->bi_vcnt <= IOPRIO_NR_ACTIVITY && PageWorkingset(page)) ? 1 : 0; > + bio->bi_ioprio = IOPRIO_PRIO_VALUE_ACTIVITY(class, level, hint, activity); Shouldn't any code that is related to the page cache occur in filesystem code (fs/) instead of in the block layer (block/)? Thanks, Bart.