Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3274234rwb; Mon, 15 Aug 2022 22:58:56 -0700 (PDT) X-Google-Smtp-Source: AA6agR4jqBz2vzyVIGiwtGmke8RVi5HgUAXyMiw7wmH8NuWrmiTz3KwmMDKmlaU+a52+bCx00xD+ X-Received: by 2002:a17:906:9b15:b0:730:d10f:a932 with SMTP id eo21-20020a1709069b1500b00730d10fa932mr12373023ejc.304.1660629535896; Mon, 15 Aug 2022 22:58:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660629535; cv=none; d=google.com; s=arc-20160816; b=g9/Fw9mb7KD5CO5g56mBVAGnokaWhJX6QXV/cGdSAw822uoo3v4UcD55p7hvy2X+Rv 6mDtouJ8+t1lXJwKRDf5t5F1LN6GVRENJTTiSjbhO8V2CPpa8n5NFNXl8sNVMjLE4KGN gfjYT6xNMsNbBDNRqQ0bVNZHqtdkCSIc7lMR9r5CXfFfURFxIbGMn9XY3vDEr29spg42 C5xt5cl9urE0oguIMUk8U091VWyVY1jzK91wtvBiYhitu7zlUoI1bDVTFjen7Lt/tbBC DKTB4kpzARrWXP3v7lNQGzjlWSq7sP/KdlLXCE10CxN4cQiODAsmYLd6HY2/2qW0THEP AEyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=krpFJMKnaHw4LccCuHoYK4yHy3Uen5evcW8YpZkY5aY=; b=VyAtg35d/LVgA70FQPQNvsRr/tHql/fMSULgZ2HafeWUDJ0AOCfnbGOSB7XfrW0sRw VmqdSvHv5p5WegXbdW8TpHtEGAgbeJjqOioLkYaF8Q5lIhGAMKAWB4gGCcs6OIx1W1xM 4YfU9CQPdfVemE4oxVJFkAmElICjnYCVuhbLMu2p406Wz4uaw3LaTfs2HA7EpS8dHU/1 pFBiK1Bm8dkLqzrQtgZxSeYoh6rJzoy1IvA9OhzqvsJ2UsGpc1CgPXFy7IBm4mx5Gq+m LTROHdYXMrRd/4rtx4WXcFqEh5+CynU4bcnG+iQ6mjiz5V+ONiRZuRmhWQgCqxREOg7o YsNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="xmcTCX/h"; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cs16-20020a170906dc9000b00738466b6883si4609337ejc.42.2022.08.15.22.58.30; Mon, 15 Aug 2022 22:58:55 -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=@linuxfoundation.org header.s=korg header.b="xmcTCX/h"; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232468AbiHPEpe (ORCPT + 99 others); Tue, 16 Aug 2022 00:45:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231244AbiHPEmA (ORCPT ); Tue, 16 Aug 2022 00:42:00 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C5E4D31EF5; Mon, 15 Aug 2022 13:36:42 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 63056611D6; Mon, 15 Aug 2022 20:36:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4B4FFC433D6; Mon, 15 Aug 2022 20:36:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660595801; bh=P6zsy+Br50IxBtDghnh0AItILePGuWVPwZtgnBjUs34=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xmcTCX/h7vgy5NZGLnGpDxpa3D5NVTngVNBxy1VQf7yJF+b7CCdH7TJdZm3Atb33J Aqxke/qRzu7Jm45eRy2moWm1wvlLQIgg5VmAl5a5ESe1Pgo7klaISYCnS0YLvdV3wW /KDVjNlqhriDzSHGTXAK4zLhYM5S7coY27OwLNvU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Bean Huo , Christoph Hellwig , Jens Axboe , Sasha Levin Subject: [PATCH 5.19 0880/1157] nvme: use command_id instead of req->tag in trace_nvme_complete_rq() Date: Mon, 15 Aug 2022 20:03:56 +0200 Message-Id: <20220815180514.631632038@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 From: Bean Huo [ Upstream commit 679c54f2de672b7d79d02f8c4ad483ff6dd8ce2e ] Use command_id instead of req->tag in trace_nvme_complete_rq(), because of commit e7006de6c238 ("nvme: code command_id with a genctr for use authentication after release"), cmd->common.command_id is set to ((genctl & 0xf)< 12 | req->tag), no longer req->tag, which makes cid in trace_nvme_complete_rq and trace_nvme_setup_cmd are not the same. Fixes: e7006de6c238 ("nvme: code command_id with a genctr for use authentication after release") Signed-off-by: Bean Huo Signed-off-by: Christoph Hellwig Signed-off-by: Jens Axboe Signed-off-by: Sasha Levin --- drivers/nvme/host/trace.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/nvme/host/trace.h b/drivers/nvme/host/trace.h index 37c7f4c89f92..6f0eaf6a1528 100644 --- a/drivers/nvme/host/trace.h +++ b/drivers/nvme/host/trace.h @@ -98,7 +98,7 @@ TRACE_EVENT(nvme_complete_rq, TP_fast_assign( __entry->ctrl_id = nvme_req(req)->ctrl->instance; __entry->qid = nvme_req_qid(req); - __entry->cid = req->tag; + __entry->cid = nvme_req(req)->cmd->common.command_id; __entry->result = le64_to_cpu(nvme_req(req)->result.u64); __entry->retries = nvme_req(req)->retries; __entry->flags = nvme_req(req)->flags; -- 2.35.1