Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp18491127rwd; Tue, 27 Jun 2023 18:31:30 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4fV142Wr/XislgLtj7/1cWJi+MjJ+MDz/jMMTAjqbb52oz8vOwAKWpYvtNG04UJ7fHFibz X-Received: by 2002:a05:6a21:6d86:b0:122:e4f:25c7 with SMTP id wl6-20020a056a216d8600b001220e4f25c7mr23503369pzb.31.1687915889942; Tue, 27 Jun 2023 18:31:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687915889; cv=none; d=google.com; s=arc-20160816; b=xrT8IDPJbp000VsSWlyfe+Q1I9AK+4jJ2KxbLaUkBq1DZiklkRccuGLjsetKPDK4Pk sbk2RBw32WmgBhVdQVxALiWmfW3BaQqV4YYGzmWXiM+Y2XPVg4Yc7hVDFB3kZKZUA0d3 7DPr7pHZ+I+GGTaXi/ZcyDYUEWr5eQCwCy2/IRyHUpGD4aDvdXu6187v9fVo2jPcexoH dEiVjbBcR0/bbb/8Ap2/CTisSOXi+poVzIUE63lSVlTzbQQpzMyLQK6Fjz/9sq/tho4c +G0AaK1av95AkBx4gdUuMIEl6Q/tz6hkkMZsoDpSHqzx6tna0zpod8ENyCv9rXCuVH+5 UIBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:mime-version:date :dkim-signature:message-id; bh=5Qh54UmxMUrYnf3XawZlR6M2UEV3kFrEfjxB/XEVSXo=; fh=Fu6xXsYCbG0u0LP41wyHxhITuTxe18FlDnybSH49ZmA=; b=WdOH90UVeu+FrFep7loc/PYCzbNZTFQEs1xdQNY3dVZ7iVnr96aL5B0UlOXNlSPj7c gXttvnGZ3UM1w7Yh6LHqMr0jcuyeOOmcCx8JRIcR4HgBpmjviaklchp9G2XAb0AJS4yz k9tkF7aGJNte/A7JlkFEORE36R+M0/eouHk8s+boXTNChjpDFRByLKyyeC8KA8aELYQr sd69GYn71tggzrExhdgA/bu3TQ/dECdMxVh6OxytJ/5jFfygxq+K9gzxWu8Y6yrH3bbV Cic/yXPRye5wSEhYR0yXBy/iczR6Lk05BeamM5D44pdwqxZ3ez3mL2CzWBmmka+nIcRp bAzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=CBD8Ex1d; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n6-20020a170903110600b001b3b5851f0dsi8768613plh.466.2023.06.27.18.31.17; Tue, 27 Jun 2023 18:31:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=CBD8Ex1d; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229459AbjF1BRA (ORCPT + 99 others); Tue, 27 Jun 2023 21:17:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229622AbjF1BQ6 (ORCPT ); Tue, 27 Jun 2023 21:16:58 -0400 X-Greylist: delayed 159059 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 27 Jun 2023 18:16:55 PDT Received: from out-52.mta0.migadu.com (out-52.mta0.migadu.com [IPv6:2001:41d0:1004:224b::34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C92F2139 for ; Tue, 27 Jun 2023 18:16:55 -0700 (PDT) Message-ID: <61ccfd88-1d08-124b-02cc-213107e81438@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1687915013; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=5Qh54UmxMUrYnf3XawZlR6M2UEV3kFrEfjxB/XEVSXo=; b=CBD8Ex1dSBrqVpzY5Kq0adyotRuj/OdOnUZqi7ddyhhKG3Aoj0GkoD3O9nOC2EUvQtXrQM IHqGyzcql5kqehzYm7Midalcd45bqJzldHoHMZh+R81ELfwwlRhG7A5/3kPIeHaH/Aafqp XwbL2iHfvPIuDOZYyBIqXYYveG4b7gY= Date: Wed, 28 Jun 2023 09:16:46 +0800 MIME-Version: 1.0 Subject: Re: [PATCH v2 3/3] blk-mq: fix start_time_ns and alloc_time_ns for pre-allocated rq Content-Language: en-US To: Tejun Heo Cc: axboe@kernel.dk, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, zhouchengming@bytedance.com References: <20230626050405.781253-1-chengming.zhou@linux.dev> <20230626050405.781253-4-chengming.zhou@linux.dev> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Chengming Zhou In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2023/6/28 02:47, Tejun Heo wrote: > Hello, > > On Tue, Jun 27, 2023 at 07:32:42PM +0800, Chengming Zhou wrote: >> Since all requests in batch allocation use the same alloc and start time, so this patch >> just leave it as it is, and reset it at actual used time. >> >> I think both way is ok, do you think it's better to just set the popped one request, leave >> other requests time to 0 ? If so, I can update to do it. > > I think it'd be clearer if the rule is that the alloc time is set once when > the request is actually dispensed for use in all cases, so yeah, let's just > set it once when it actually starts getting used. > Good, I will update the patchset today. Thanks.