Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1978461lqp; Sat, 23 Mar 2024 19:11:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW4fDCtGWVVuTj20I+IcvZVsYP2+Qm4rfAuuIXQwWNECYpT9uTwiabj737IEEKxTxv+DnZ9UnbGO7fls5UfuMfk3uBeRAdEs+zyImkURg== X-Google-Smtp-Source: AGHT+IFH9K/8mwUS9Xnm16H5X302F0w7/AeM3I6zvtWEeAC2evskYaGn+YV0JliaSHM8v2SK1UuL X-Received: by 2002:a17:90a:bd81:b0:2a0:27e1:8901 with SMTP id z1-20020a17090abd8100b002a027e18901mr3080906pjr.1.1711246310115; Sat, 23 Mar 2024 19:11:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711246310; cv=pass; d=google.com; s=arc-20160816; b=w1/B50MRXw+DdpqPKkLz+NlGPcp83AazeD0CY2rsowvXZcZWjufZhqUTG+3DbE287Q 8oGl+2JjNI4ReidKCHUjPuryBiRC3VIUrqEm6t7KVdEFqJ9tNzGvFpj3Hn802rMEa2Yg MVk80Mi1QlcA+rB28tfD49k0gVqgrJaqpP/WK/bksHk3P4P7LqhwJ3x3pAiRu/xGLPR4 Z9K8xl2alRxNAAoaWMpDw3Pyz8kju4g1h6juE2qEwwBvodHWiH0b/iPVPmf9Bxo1fvwb 17f8IUNCAOq/pd5aePba39cwASiFcS+f35yWUdSSQIBM0Qt3sLqOaBLIIgB0Lq0UKqsq 5Smw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:user-agent:date:message-id:from :references:cc:to:subject; bh=zQ6LDydSd1ZyL2Y69oVJ3ZHFLDGYNqre6KViJSVhDYk=; fh=Vo5nAQ2KjRdDaKhuONDPVKfvutCEcH66ndO0mKKo/aQ=; b=ZGnO4KcDmC2BfhsEq5xPS0aeAeurZWkP+fEsfLGw7xHxQLu8C7xr8rLtJU1fUEIa/M jDXimgaqZTSlZ9r7tS2rHO0CXUCFsD2F+tSfcssa0FVLcfbkYRYLEcL7bAZEhwVVVnyf Cyk+q6P+iZ9I6ptMlm3F9bH+fH4U+rR72RbDW8scqwNwtp/d1YeX5gTqMB7G6UF6odSw gZ2tE/0GZ0afbP6Gay6WjdQG44b2tfVGasNeu8nk5ieJW8DNYROeVP1wutyysT6NJqr3 ROUqugqp/L6QcUGsCuIPYxADlejeEG0pWYO7hUzxG/Mnldte9eCbOTT5BqG8K15QoIEj SjbQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huaweicloud.com); spf=pass (google.com: domain of linux-kernel+bounces-112547-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112547-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id q11-20020a17090aa00b00b0029bc32659b4si8747013pjp.30.2024.03.23.19.11.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Mar 2024 19:11:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-112547-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huaweicloud.com); spf=pass (google.com: domain of linux-kernel+bounces-112547-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112547-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id C5A68B21C2B for ; Sun, 24 Mar 2024 02:11:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4C6CF290C; Sun, 24 Mar 2024 02:11:22 +0000 (UTC) Received: from dggsgout11.his.huawei.com (dggsgout11.his.huawei.com [45.249.212.51]) (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 C0CA717C8; Sun, 24 Mar 2024 02:11:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711246281; cv=none; b=tJKGz2jwVwj5tDyYc3Ibyc7HgBeYH8qpKaxbuwDWoimNyYMhogx7DUOhBi5rtbCnKyk8FXmS+WIFHSluSCZU2r6t18eui2kXP9fx763GXjopV3pbyGteKpeU/nk5YFSTecMCYr/mXQYLW7BYO0KpKVfQc72O7s0lpywPkJ+T/po= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711246281; c=relaxed/simple; bh=NDITpm+Io5eF73wa40dDzJ4n6hWGDX3M2JytLekCKDc=; h=Subject:To:Cc:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type; b=PCr8slMkFFMyVazJyhm6zzzyUPzs45weePZhse/4xwGj0XTZZRc9tstVd1urzYzM+aR3Ykaf7BQoUByfpojD/RcXoj7AHdlZ/q5zMhwtLxvniSmr2fPWkxE1Ck1LsnOotzzD/rsC9KUcZkilZKttsOnewwCRbSLcqMWe4MgZ+b0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=huaweicloud.com; spf=pass smtp.mailfrom=huaweicloud.com; arc=none smtp.client-ip=45.249.212.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=huaweicloud.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huaweicloud.com Received: from mail.maildlp.com (unknown [172.19.163.235]) by dggsgout11.his.huawei.com (SkyGuard) with ESMTP id 4V2KL63s7Sz4f3jYg; Sun, 24 Mar 2024 10:11:10 +0800 (CST) Received: from mail02.huawei.com (unknown [10.116.40.112]) by mail.maildlp.com (Postfix) with ESMTP id 7C7E91A0C00; Sun, 24 Mar 2024 10:11:14 +0800 (CST) Received: from [10.174.176.73] (unknown [10.174.176.73]) by APP1 (Coremail) with SMTP id cCh0CgDHlxDAi_9l6YOUHw--.39150S3; Sun, 24 Mar 2024 10:11:14 +0800 (CST) Subject: Re: [PATCH 2/2] block: remove blk_mq_in_flight() and blk_mq_in_flight_rw() To: Mike Snitzer , 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)" References: <20240323035959.1397382-1-yukuai1@huaweicloud.com> <20240323035959.1397382-3-yukuai1@huaweicloud.com> From: Yu Kuai Message-ID: Date: Sun, 24 Mar 2024 10:11:12 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=gbk; format=flowed Content-Transfer-Encoding: 8bit X-CM-TRANSID:cCh0CgDHlxDAi_9l6YOUHw--.39150S3 X-Coremail-Antispam: 1UD129KBjvdXoW7Xw4DGF4Dur17tryxAw4xJFb_yoW3AFX_ur yv9a4UJ3W7JF1aq3WUGF1fZrZrG34fGrZxX3y7XFWUAr1kXFWSgFs5Kas7uF45Aa1jqF1S k34ftF4xArW2gjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUb3AFF20E14v26r4j6ryUM7CY07I20VC2zVCF04k26cxKx2IYs7xG 6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48ve4kI8w A2z4x0Y4vE2Ix0cI8IcVAFwI0_tr0E3s1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI0_Gr1j 6F4UJwA2z4x0Y4vEx4A2jsIE14v26rxl6s0DM28EF7xvwVC2z280aVCY1x0267AKxVW0oV Cq3wAS0I0E0xvYzxvE52x082IY62kv0487Mc02F40EFcxC0VAKzVAqx4xG6I80ewAv7VC0 I7IYx2IY67AKxVWUJVWUGwAv7VC2z280aVAFwI0_Jr0_Gr1lOx8S6xCaFVCjc4AY6r1j6r 4UM4x0Y48IcVAKI48JM4x0x7Aq67IIx4CEVc8vx2IErcIFxwACI402YVCY1x02628vn2kI c2xKxwCYjI0SjxkI62AI1cAE67vIY487MxAIw28IcxkI7VAKI48JMxC20s026xCaFVCjc4 AY6r1j6r4UMI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2IqxVCjr7xvwVAFwI0_JrI_JrWlx4CE 17CEb7AF67AKxVWUtVW8ZwCIc40Y0x0EwIxGrwCI42IY6xIIjxv20xvE14v26r1j6r1xMI IF0xvE2Ix0cI8IcVCY1x0267AKxVW8JVWxJwCI42IY6xAIw20EY4v20xvaj40_WFyUJVCq 3wCI42IY6I8E87Iv67AKxVWUJVW8JwCI42IY6I8E87Iv6xkF7I0E14v26r4j6r4UJbIYCT nIWIevJa73UjIFyTuYvjfUoOJ5UUUUU X-CM-SenderInfo: 51xn3trlr6x35dzhxuhorxvhhfrp/ 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 > > (I'm not seeing the commit in question, but I only took a quick look). > > Mike > . >