Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3938701rwd; Mon, 29 May 2023 20:26:22 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ45iuazI8dD+VgCF53jrEOmYPQMgvGI3f8YaMnPIIOSpW9iM16ZSuQBTwHjq+XJpcXvT7Lf X-Received: by 2002:a17:902:ecc2:b0:1ad:8c8f:afb1 with SMTP id a2-20020a170902ecc200b001ad8c8fafb1mr1268997plh.39.1685417182265; Mon, 29 May 2023 20:26:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685417182; cv=none; d=google.com; s=arc-20160816; b=SwA7p3RcvxLzJMtdSkR1L2iTxvkZGiOrkE07juq/xVBPNq7XUy6FKYQpnBbe4ufWhH GUdgnokvulmN3ECnbTpjt5wAFASCPeby3Al96oPOkuZZWZvmfawiAdv8g70xGUUYhlO3 fUTVvwcdvwdKy9bzleX14sjkabMQrepj+WRyG3Z+kAlHNkZqe8lR9FRtMXWg3Yyi6zXb cLuUupuIjqVtzMsP2TWusd8hXuQoQJhqzvEg9lLKw7DuumDepjvYLspRLpmoSoMs0KOO uRe/X0ZX0Jf0spUV/GlAwT0choe6vykkvhdKz/DRLzyPY0aFqTcQ3ZuNTFpu7Qnkgk20 +o6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=OvM0y6VNRliRPDVUSeg1QBMWNmNUv7Ud9dd+nfoUaE0=; b=QCftBQ46UQ2a6jtvExldaooEuGLoHv36/cH14cpRE11We5X9uCEOQcKPNOsD5ihH5Z NuFT+Fhn3Dt8BtyKK3pzxBU9H0qb8N3WCsuSeYZhJObAGgvMx/qVbuRd72ng3OhbJ1CE yeubNt0QKazJlXixK5xNoN5nz9nhMqmsussF7eUg+g/gWhDOHtHEZzEC6Jwslb+1+YjM a68Ks8plFPiJk7wNhgMEwNZrcJxmF2haD1NIrAfc5czpr5p757sVs4jVAmi03pVfAncm ZWY6EByLHyvYvGLQFFQvKc6k5HXkEeY2uSoWMpgdSCixOrRgTvDDHG2eHUV58Kurdjdj k02A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=le0n9U0j; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q16-20020a170902dad000b001b039693da8si3684213plx.635.2023.05.29.20.25.45; Mon, 29 May 2023 20:26:22 -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=@gmail.com header.s=20221208 header.b=le0n9U0j; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230240AbjE3Ctv (ORCPT + 99 others); Mon, 29 May 2023 22:49:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229461AbjE3Ctu (ORCPT ); Mon, 29 May 2023 22:49:50 -0400 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5BB728E; Mon, 29 May 2023 19:49:49 -0700 (PDT) Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-4f4f89f71b8so2299339e87.3; Mon, 29 May 2023 19:49:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685414987; x=1688006987; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=OvM0y6VNRliRPDVUSeg1QBMWNmNUv7Ud9dd+nfoUaE0=; b=le0n9U0jpxczpwLhNAv68Y5WyqHzPFG3wGDw8gjr4YE57gf+MFqLu3KTSw+f9WtUu8 7gCG/Tt7xKBtR+tq7O1qPk/TMukJVB/d+SRBNOvVR8Bi4RWk0gdFn5jhmvXaLdJzJQll mnXAKnVT4CnR080xsmKIhIDnKQ/reksgrLVqW//TvnrKIufM7vEh0d/HFDB1S2q2zGrr CTfGglXERMTtsrmtdbn27K7bFX8zgaLJV5kG0doVdaJt2B7o5ydm0L7K0E5e/mkLZeXQ hoxeA/B26ayOz0ZRyxlK4OrYJdnfbM6ZACj+z10HcJ0HGMWU4rUHpWwUUcKcRIUFL6q/ 1z/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685414987; x=1688006987; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=OvM0y6VNRliRPDVUSeg1QBMWNmNUv7Ud9dd+nfoUaE0=; b=OxZtLaKLeGjc0rtiAS2kVpznMLH5jiYS0yEVt+MooappWtl3d63dgUOBV75C6ukSab vUjVJkln2lh5M8L/4yFanYmkuf31uaMpwmBEA7CpcpN2+Kim+OH9B6I1WNdE4W/8qIDM SwFthyIlDaZpeXBKHPQU5FDaGzK7zIx99dAMyxdE2/o7JLOIsxN5miR0rF8bzZ1o0V3d VpqRl3JAo3BKI8HA4Rmbg8v3gVBJFimzexTHNFqotROPBgX3zSLITFEgpj8Y8d53gP3N fFE5M17kAXtW1BT8CrBlkzV/gNafI0FWbRhs+XOapxttrskwVUeunEn7h2hzDZ11w1YR gHoA== X-Gm-Message-State: AC+VfDwGF/qkTOFRCvR8nw4KK+JhSz9DavlTxNGT+JHXgKb7PlWrvt7q S8+o1WuhrTbjDi6X7kaEMVz80Ps0Z2cCOCcKCA== X-Received: by 2002:ac2:4c09:0:b0:4f3:a51f:54fb with SMTP id t9-20020ac24c09000000b004f3a51f54fbmr159241lfq.59.1685414987189; Mon, 29 May 2023 19:49:47 -0700 (PDT) MIME-Version: 1.0 References: <20230530024120.17196-1-powen.kao@mediatek.com> In-Reply-To: <20230530024120.17196-1-powen.kao@mediatek.com> From: Stanley Chu Date: Tue, 30 May 2023 10:49:35 +0800 Message-ID: Subject: Re: [PATCH v1 1/1] nvme: complete directly for hctx with only one ctx mapping To: Po-Wen Kao Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Jens Axboe , Keith Busch , Christoph Hellwig , Sagi Grimberg , Matthias Brugger , AngeloGioacchino Del Regno , wsd_upstream@mediatek.com, peter.wang@mediatek.com, stanley.chu@mediatek.com, alice.chao@mediatek.com, naomi.chu@mediatek.com, chun-hung.wu@mediatek.com, cc.chou@mediatek.com, eddie.huang@mediatek.com, Ed Tsai , linux-block@vger.kernel.org, linux-nvme@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Tue, May 30, 2023 at 10:45=E2=80=AFAM Po-Wen Kao wrote: > > From: Ed Tsai > > Refer to > commit f168420c62e7 > ("blk-mq: don't redirect completion for hctx withs only one ctx mapping") > When nvme applies a 1:1 mapping of hctx and ctx, there will be no remote > request. > > But for ufs, the submission and completion queue could be asymmetric. > (e.g. Multiple SQs share one CQ) Therefore, 1:1 mapping of hctx and > ctx won't complete request on the submission cpu. In this situation, > put this condition in block layer could violate the > QUEUE_FLAG_SAME_FORCE, as a result, move this back to nvme. > > Signed-off-by: Ed Tsai > Signed-off-by: Po-Wen Kao Reviewed-by: Stanley Chu