Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp35290imm; Thu, 28 Jun 2018 14:21:47 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdGojKAjD6RL6kelsjONFPHZbZS7Fh6jIKJBkWEfJ2LR+pCH6wesS+NRvTS+ZojrUmukmvP X-Received: by 2002:a62:2414:: with SMTP id r20-v6mr11695667pfj.108.1530220907339; Thu, 28 Jun 2018 14:21:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530220907; cv=none; d=google.com; s=arc-20160816; b=ZFSyHkXPAD/2NiOYallq2lqMQzwXyQL9wv2uxOc3tVIXCasQA5QrrHIDRzXfuiwdAZ 9gi8OJHRw0hqRARKwUZun2KO5niKGxxfc9MPur0ZJnlTh+vSBGWk6kWlGvKdndqPsLSL CCBgPxfeiGzX+f9zJNePc35FZCCgdoJkMQJyfocyTTYh0dU346njZ05k7iXXFpNUqjfj 5mL6EaH4TUXXgt/DMsj/wgPov1qUWDx9lwp4jaadIJrM3IfAgXbLDSHwujoVl5L8IeD4 AbR32yPAqiR0coH3hdxDK/1j7Gcn1BG54QJ8KmHGet4XMHgu4KvlkV9oru36CDH226iI 41Bg== 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=pJw4UondCyXoRjA29c28NQvoD5w68jcufkCFc9T57Hw=; b=Z1dZHpJ13Q409HaHMQ/3SMYcTrL4dN16YLKAiNZcoNiBuIw0pbOvYeF+E+E5fKbFM1 tJno3GMg87Y1aq/xwnms1agESJvchapkQItz224mt9kmjkfg5EGXyggJoaXlZIOqXknY LafhuqWcVtB6D8/5pq9EPvr4v2g9MCRDi/JvofFws4sL+G7lx33IK3VMtX2CXdRwf14P YoWoadmaeynS1zclCd8Row86UD2cV0seDUOBc/JCCZt3UiKaJ8pTG1LYqCBcB9tsx5Hq bwgtPypt4/9WgBPAMWpZOp5xp3jFnMqzw/9jkWiXIQ/OKI2eMziphpn7IghMZIBZn6D5 /YJw== 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 q14-v6si7177383pll.324.2018.06.28.14.21.23; Thu, 28 Jun 2018 14:21:47 -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 S1754756AbeF1VUS (ORCPT + 99 others); Thu, 28 Jun 2018 17:20:18 -0400 Received: from mga09.intel.com ([134.134.136.24]:32949 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752547AbeF1VUR (ORCPT ); Thu, 28 Jun 2018 17:20:17 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Jun 2018 14:20:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,284,1526367600"; d="scan'208";a="62371032" Received: from unknown (HELO localhost.localdomain) ([10.232.112.44]) by fmsmga002.fm.intel.com with ESMTP; 28 Jun 2018 14:20:16 -0700 Date: Thu, 28 Jun 2018 15:19:28 -0600 From: Keith Busch To: Bart Van Assche Cc: Keith Busch , Johannes Thumshirn , Christoph Hellwig , Sagi Grimberg , "linux-nvme@lists.infradead.org" , "linux-kernel@vger.kernel.org" , Jens Axboe Subject: Re: [PATCH 1/5] blk-mq: add API to get hctx index from request Message-ID: <20180628211928.GA13810@localhost.localdomain> References: <20180628205601.13742-1-keith.busch@intel.com> <57c119c3-5704-0dcb-96dd-fede99c49511@wdc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <57c119c3-5704-0dcb-96dd-fede99c49511@wdc.com> 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 Thu, Jun 28, 2018 at 02:12:38PM -0700, Bart Van Assche wrote: > Regarding the above patch: have you considered to use the existing function > blk_mq_unique_tag_to_hwq() instead of introducing this new function? Interesting. I think the usage I need using that is something like: blk_mq_unique_tag_to_hwq(blk_mq_unique_tag(req)) Sort of a round-about way to get to the hwq from the struct request, but I'd rather not introduce anything new if there are other ways, so thank you for the pointer.