Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2347394lqp; Sun, 24 Mar 2024 14:57:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUdcxuyoJksarudhqBOEywQnEr7DWt7/iCnNl/d9/cq7LgVIvUWc3IJrgV9GjAJEnwHtY5VhGJcHB1eC0YfDmaNWrGFn7jVBkuZVTYPtA== X-Google-Smtp-Source: AGHT+IHZAEfRQAkApcmyHmGqXUuMovhp+HHNcChhn3EoRT13lc1NY34lVhVaPw/acfk4rzyTtWA9 X-Received: by 2002:a05:6a21:3982:b0:1a3:afdc:ff5 with SMTP id ad2-20020a056a21398200b001a3afdc0ff5mr7736611pzc.10.1711317462569; Sun, 24 Mar 2024 14:57:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711317462; cv=pass; d=google.com; s=arc-20160816; b=NbJI/B1hl6/1gt8LtRj5qBiGS01fPgp/Y18vRk4iLd+mz0memxckGA7Q82RSmkRE8u 9QZum7UIBV/rmIhnws2J6MMnRNP1qNhG0hFTwNc6nsr7CI41M/QYspercUVezxzDZkeI 3KA5kuu8L0U+StouyHV9r+tzabew18fwWOtt0q4n49neafGNXLFn6gjvI+JfhPN5/AV9 wsYaPubNhqxJ6O0BuDzKWki6LkBQEGty1+cbLT+cJ8cIG8FLMVSg+dn7T+v2ztvGbkqv HbaP6X8FagnZhsLYy9lmCwX5ITCwB3s+gkVj/2pXF/hA5osS3Fexd+THFqUejs3b4tf8 lNDQ== 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; bh=aW1uYlxzmK0CTtcm9QtkmtxOoxLLB7jXV7c/ndwCr2g=; fh=rDqUysJUzCV8s9vDsSALpzwoKqFEN8eR/pGH9DMj0JU=; b=q2WWQ49egu45LyggzefaDeJO4UDW7ErPngd4MBpekh9VLUtg9P4uB17END0p271qOX vsbwgR6Hzd3JmLAW4r8Tc2HU5kk+rdrcD/XpHjohy/pjz/CjSRtajZYgTjnnJdhmMn82 FV1afvgFZ9EJxIDDORoH8NAsZHF/4whhtBBhyJw/j38uAJ26eHeTPBr9Z3OaOuu9yZVG lRglGVwtNn0WH8dFZewx9yiv04yUDgdRtuU2WLNNWP+A68nEA15ipR6324Y/f5PUenQU xRm1wsIi9ZTeGZakHZF3sqCI2pnHEcO2dMW2uMX+lEJU2ln0IQ1KaZsbmCOHRoXKp9j1 KthA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-112874-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112874-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. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id e24-20020a63db18000000b005dc1b73dd16si6205427pgg.372.2024.03.24.14.57.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 14:57:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-112874-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=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-112874-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112874-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 2FF09281649 for ; Sun, 24 Mar 2024 21:57:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3F04C3E474; Sun, 24 Mar 2024 21:57:35 +0000 (UTC) Received: from mail-qk1-f177.google.com (mail-qk1-f177.google.com [209.85.222.177]) (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 F1A713D963 for ; Sun, 24 Mar 2024 21:57:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711317454; cv=none; b=pI0Djj1Hw+XeEk1yivps/JY1wlfT2C4xregNcxkssah7VYf4FxyReFL/1ci2D6qBtIPurreTddMxOjyzL5cZCW1uwXYA68qSoxT9PTk5fHddnPbh2TOVu+L3wh3W5c2Fta8/LExUIAPkICKdpYky96a9YuaK0LD3jTm1+Dwi+30= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711317454; c=relaxed/simple; bh=BOkYCK2qQtPHq4L14VfaTwZ/r9VLhpWaboZSzmJjo0E=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=EnUK64fW/z8eDp+eAduc/4B/fU/rRuC83RF+HKDOUF/u7ka13ZUpfw7XJklZE+BgmFYNMAbt2aMInQTQDLXP989wxD79bv35nIEjXq1K2eSm8s5b0fQlAShVPqpvogbZVtUnpLmf2ITQWePyC1/dMrpafGxewrjl9RozWk/KHPk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=redhat.com; arc=none smtp.client-ip=209.85.222.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Received: by mail-qk1-f177.google.com with SMTP id af79cd13be357-78a4708a557so98746385a.0 for ; Sun, 24 Mar 2024 14:57:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711317452; x=1711922252; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=aW1uYlxzmK0CTtcm9QtkmtxOoxLLB7jXV7c/ndwCr2g=; b=Tp/+SmF/tM3xUHzKpRBhr9SYV5TFmXwwktYqSHb2pvFf6AGtsKvXtFndFl7eZ6E1Xl XkpXF7Uhiya4jTyPBAJtDZ6vmJ+B4Lcy6X92vRRE0uxerwggMeHG0H0X/lbome33TrYM 2DF+DCpevHmAy+qLUifv7OWWbVJpcLRiNfsXOzn/dmk0ZzYfGgzD2h45efhFQrgc0X83 GS6uNyZEmwDEk/ObamTvz2j3rYOIFk4yh2iFMWvKA5L+GZ+XJYk+1Na+UvEXjeNZzwpR 13u0gxA/Kvz6lBuWpVOVups/ufhxmCxy+8LgE8H34HF5Lf22zkoDN+iMUAkIsTOrbkZF TBcg== X-Forwarded-Encrypted: i=1; AJvYcCVL24GE2NKQvCb6lhYCTwBgvF7F8R3ZIlZYHEvwBdl3UNRGctG4GjrkZlpPh9tph2HCTq0Ntv0dNkaqBaatfDUTjU8eACepL+BubBjN X-Gm-Message-State: AOJu0YwTxE6OI6KzwnU24rnqtqFAK9aIR3nTh+zWFY0/XbxFvfUAJ3yl 1v+3OskL/19NlkYYqAxCh+MBJX3zcaunJJC5uIGiGR0i/M2G1iYuNom8l+C2kE4qlCVZ/L0DhZs = X-Received: by 2002:ad4:5aaf:0:b0:696:3e05:9c21 with SMTP id u15-20020ad45aaf000000b006963e059c21mr7295157qvg.18.1711317451878; Sun, 24 Mar 2024 14:57:31 -0700 (PDT) Received: from localhost (pool-68-160-141-91.bstnma.fios.verizon.net. [68.160.141.91]) by smtp.gmail.com with ESMTPSA id h14-20020a0562140dae00b00691732938a8sm3410147qvh.73.2024.03.24.14.57.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 14:57:31 -0700 (PDT) Date: Sun, 24 Mar 2024 17:57:30 -0400 From: Mike Snitzer To: Yu Kuai Cc: ming.lei@redhat.com, hch@lst.de, bvanassche@acm.org, axboe@kernel.dk, mpatocka@redhat.com, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, yi.zhang@huawei.com, yangerkun@huawei.com, "yukuai (C)" Subject: Re: [PATCH 2/2] block: remove blk_mq_in_flight() and blk_mq_in_flight_rw() Message-ID: References: <20240323035959.1397382-1-yukuai1@huaweicloud.com> <20240323035959.1397382-3-yukuai1@huaweicloud.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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Sat, Mar 23 2024 at 10:11P -0400, Yu Kuai wrote: > Hi, > > 在 2024/03/24 0:05, Mike Snitzer 写道: > > On Fri, Mar 22 2024 at 11:59P -0400, > > Yu Kuai wrote: > > > > > From: Yu Kuai > > > > > > Now that blk-mq also use per_cpu counter to trace inflight as bio-based > > > device, they can be replaced by part_in_flight() and part_in_flight_rw() > > > directly. > > > > Please reference the commit that enabled this, e.g.: > > > > With commit XXXXX ("commit subject") blk-mq was updated to use per_cpu > > counters to track inflight IO same as bio-based devices, so replace > > blk_mq_in_flight* with part_in_flight() and part_in_flight_rw() > > accordingly. > > Patch 1 in this set do this, so there is no commit xxx yet. > > Thanks, > Kuai Would've helped if I looked at 1/2, but please say: With the previous commit blk-mq was updated to use per_cpu ...