Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp6033119imm; Wed, 27 Jun 2018 00:41:29 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIRRGfJFnFhkRS5XLI8Le/9mhT2yAHwqm7q3VyxLVohmPahkQUheDORUv29DCG/l1om0njU X-Received: by 2002:a63:7d06:: with SMTP id y6-v6mr4175176pgc.356.1530085289328; Wed, 27 Jun 2018 00:41:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530085289; cv=none; d=google.com; s=arc-20160816; b=PPvL/+I6SUTcDB7mR0QY4I8xQu+wzsokiDA2U3DzI/FXpopz9EJb32VNlHvT/nPS9t ZKZBUsZOGaHlrnlggtbeEBit3TCQ5xNzb/bhe2EhUCyGqk4N5ymhc2/l7vwNiwx/63Xf 7EFaAkODsGT3ZCQaafPLGhXHIkiQVdXuyv2U6Tbbng6iSohpuZfSA7pzNUSnjXzvrozE rUTRDgUaSZMFwD5AwOwXai7wL6y8XYSnlcFc0UyflgjqU3VJB5Xut61zsGYAdPYse1Ez 0y8S/AdI5UGp9bgyI5ksRVJytqWycdYkyEY/xAFulJI6KDa7FAuBvNABakEev1TyTsX6 UGFg== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=AuujBzPSiuWAjFovCbCwC1yyuP47xeLLticPqQqRGu4=; b=k1TO57Hugu74TkBM/uODzCdIgUcrfPK1KXV6QdBAuhWh1zrnpj1dJ5PnLpsdeWUzJ2 uRwfbx8v71QGXd1BUm6RlPenpbIVOB2Y0MvGQQrOn00caWDX0vv1CF+mug3KnkxZlsug /CJ0esr2JEKlhyCkT5L9bsw13afzXVVVbD6Rl/1C2QE2XXaOjwMntN4p4hNSh8uhbCxy nvKCTX3ys+yQGZx773g+BDeLU6me3NOx1JrdfUENl4mAG4f7fd5YclcEXpqL+P+IZAZT cPeFIcGamt9VzOOY0NgU0drzlTaftfkdv6QDuhgXjX2XAbNRr6wWJtZKIroP4c9uDYsw bjUQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l26-v6si3276957pfe.299.2018.06.27.00.41.12; Wed, 27 Jun 2018 00:41:29 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753342AbeF0HfN (ORCPT + 99 others); Wed, 27 Jun 2018 03:35:13 -0400 Received: from mx2.suse.de ([195.135.220.15]:39858 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752244AbeF0HfM (ORCPT ); Wed, 27 Jun 2018 03:35:12 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext-too.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id C6346ABFC; Wed, 27 Jun 2018 07:35:11 +0000 (UTC) Date: Wed, 27 Jun 2018 09:35:11 +0200 From: Johannes Thumshirn To: Keith Busch Cc: Keith Busch , Linux Kernel Mailinglist , Christoph Hellwig , Linux NVMe Mailinglist , Sagi Grimberg Subject: Re: [PATCH v4 1/2] nvme: cache struct nvme_ctrl reference to struct nvme_request Message-ID: <20180627073511.og4xsmt2o2pqagit@linux-x5ow.site> References: <20180626135141.14088-1-jthumshirn@suse.de> <20180626135141.14088-2-jthumshirn@suse.de> <20180626145532.GA6628@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180626145532.GA6628@localhost.localdomain> User-Agent: NeoMutt/20170912 (1.9.0) 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 08:55:32AM -0600, Keith Busch wrote: > 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? Agreed, but as it's Sagi's patch I'd like to hear his opinion on this before changing it. Byte, Johannes -- Johannes Thumshirn Storage jthumshirn@suse.de +49 911 74053 689 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 N?rnberg GF: Felix Imend?rffer, Jane Smithard, Graham Norton HRB 21284 (AG N?rnberg) Key fingerprint = EC38 9CAB C2C4 F25D 8600 D0D0 0393 969D 2D76 0850