Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp5308489imm; Tue, 26 Jun 2018 09:06:02 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIw5aCjaD9aLCKYOEDGb0noHXjDA7lEi5nguVj6En/rxDIySTNw+8jq5InGCzOha6VVWJf3 X-Received: by 2002:a63:4106:: with SMTP id o6-v6mr1961824pga.453.1530029162461; Tue, 26 Jun 2018 09:06:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530029162; cv=none; d=google.com; s=arc-20160816; b=Y+SKRnjOeNzi+evX8Xz3PoUmu3iwSD4WO9fln7I7KX/zWDqUPzAB1PxgVnrOsMR7VY RcP6LmCHn5LPfZig6m6Ny4CxMD+OLUj3yvt5MQDycNp1cv0Ax37oaevTl0MiOQ3GlATE 6JvPk2xk66txDCsUL8kx+ZEt4UCg31EatByJTSXXKkpo/H2N2maD/aJVOMCKXrgv0Az9 B0pS7SN6vxiup3VAkbEXPCjCIgfgUsJyVM/3xWJzKmtrZMMtFTRYaIv68cspGWwJbyNy HHFpO4YsryEaFaWwaTm9DEVgt+/R4nuWl6ysD2Mwr5GAqZpQdjk/qlFxeeB0ssaqPHkP qiGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=6rPFbbcS9LsPiGyL8u5mqYdrToxfDxu77DwYNdpozMc=; b=jxfb7a2Tq3eyymPI35U/rqT5rGosms1EFt4Gz+0U6h09YZEB6PXie3KQxhg6nxlgWl jGWIH77ZamqexojD6FTJRhbY0XART4Xn+EbVZPxMkmb29o9KGuXuYODqtZ9myV/pEl/L gGB6NWX5FmYQd6liFG3LxsQrE+/q+wx4a9sTrtAmhyhFsVIZo7Z6zDmoRcl4n+7BCbV0 pNx/L1Kr9dJrJEdjscl5N2YvBZXGZdxHipF43YWu1Q35wtGE9xOaGyOAUxLH3uGjTGGJ zX0W4XWKNOPAZzq6Xur96GPHiJ8msec4CVMDGi4JV/4oRJy6VqHzfemEMQvX4OyBX9fo 7S0Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r3-v6si1613464pgf.339.2018.06.26.09.05.48; Tue, 26 Jun 2018 09:06:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751108AbeFZOw3 (ORCPT + 99 others); Tue, 26 Jun 2018 10:52:29 -0400 Received: from mga04.intel.com ([192.55.52.120]:59883 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751080AbeFZOw3 (ORCPT ); Tue, 26 Jun 2018 10:52:29 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Jun 2018 07:52:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,274,1526367600"; d="scan'208";a="70140483" Received: from unknown (HELO localhost.localdomain) ([10.232.112.44]) by orsmga002.jf.intel.com with ESMTP; 26 Jun 2018 07:52:08 -0700 Date: Tue, 26 Jun 2018 08:55:32 -0600 From: Keith Busch To: Johannes Thumshirn Cc: Christoph Hellwig , Sagi Grimberg , Keith Busch , Linux Kernel Mailinglist , Linux NVMe Mailinglist Subject: Re: [PATCH v4 1/2] nvme: cache struct nvme_ctrl reference to struct nvme_request Message-ID: <20180626145532.GA6628@localhost.localdomain> References: <20180626135141.14088-1-jthumshirn@suse.de> <20180626135141.14088-2-jthumshirn@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180626135141.14088-2-jthumshirn@suse.de> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 26, 2018 at 03:51:40PM +0200, Johannes Thumshirn wrote: > @@ -652,6 +653,7 @@ blk_status_t nvme_setup_cmd(struct nvme_ns *ns, struct request *req, > } > > cmd->common.command_id = req->tag; > + nvme_req(req)->ctrl = ctrl; > if (ns) > trace_nvme_setup_nvm_cmd(req->q->id, cmd); > else I don't think we need to do this per-io. The request coming from the controller's tagset, so we can do this just once at .init_request time, right?