Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp11277848ybi; Thu, 25 Jul 2019 13:14:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqwpxoetHsWcRZeOb4Nhyoelg3MfomW0io3cer+rtYUXzRbDOvTBpfIuOEwPKbZQ8DuCZEbq X-Received: by 2002:a17:90a:a613:: with SMTP id c19mr96390545pjq.17.1564085695857; Thu, 25 Jul 2019 13:14:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564085695; cv=none; d=google.com; s=arc-20160816; b=VHDsJAUoXtSeqs3ZkIQOcJd5Zohm/QMZppgA1pfyYusFy3LuH4gPN6xiekBngdBHjZ p8rXCOm+zZSCG+S5OUKfvv7wYWFrrmkO9qOS8aY+gl7798jaAPllFho12R2EPXJFjikz W0wDhMX1AtejoEnuDehAoeHcOnKbr2MXBN6EDiJbyhOGiB59ZLTYDRUbPRX00DQc40LH gcqkFEfmdsuJzcWkKTtIg1FERBqrl4veAVrWeqWHJpQ3MIr5nkGga45JwV3wPTKGr7Ha qvspo0O7+SmH2/5UrS80LDmk8DY1MKoeHDsNLmiQ8qvTcC38pxS2CNbXp+TzG7Z5XKei sW+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=upMmfHcaeRgVvK81CCV//tdiGx+ZtNGeUUY24jsfROs=; b=i9QNZI8qRNLfBNEatWeLWLXyrlFdnneg/kyxr87YmjUnfks9+a5VJc9g+sxmvf5cNf UMpU+qFZtjqVv0A75R+oTNpY2HAH1/hiOwm/48LtSgLGNX3lk2i5+KUBzOhUCrjEKMw2 nuL/rU5B+P1kalDINrN97l+PSnaWGJlZfK5rjPyEBOXl01laqbBiFc1PBlLkdtDBD9vX 70hlXyIN/D1PXGwKli1EuflTJy0q2thpvJdRnqwAj71QHLbm+kItwuOt7m2i9naC4ECP epIof9SDcGlsf+FFsPY7rYLuMjdf5FiolhDk1rJKtIxCoJefADs9Hs74sAADegzyeDo+ YDZg== 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 p186si4741618pgp.373.2019.07.25.13.14.40; Thu, 25 Jul 2019 13:14:55 -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 S1726581AbfGYUMk (ORCPT + 99 others); Thu, 25 Jul 2019 16:12:40 -0400 Received: from mail-ot1-f67.google.com ([209.85.210.67]:42354 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726319AbfGYUMk (ORCPT ); Thu, 25 Jul 2019 16:12:40 -0400 Received: by mail-ot1-f67.google.com with SMTP id l15so52962159otn.9; Thu, 25 Jul 2019 13:12:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=upMmfHcaeRgVvK81CCV//tdiGx+ZtNGeUUY24jsfROs=; b=gvQtENRn5rpL/dvfsFbVIQjibLT2YJy1FT/4/LYeVG0ahJ+hKL02+pLi+aGuJ8A1FO Xwz7wmutD74ykaWjS2fPLsa4LmjlIkHouoyn0jvvADggoldar5AZeeAqxWvpzkrR0Bja Dn9j1pdVC+gvo+33qYzQ4o4TIZ7WX32eciF4jeSkKVj7sIsvYAjvEY+gBZlQ5/QLVtC/ 70Fe6ldmc4qdA8Y+cbK9noaIh3xQpJfTRJnGYYM7Hf4z3fenNh8aIWTC1OPsO6NBe2nZ ylIHKI5XWaG49w4kiKUV49dUgrU/8ln5cSwujFGPexrNu9xUHC87JuzFqh5Mu2E3HrB0 nerA== X-Gm-Message-State: APjAAAXSNq1om+lgTfoKAlCxsUbD1aWbVnJBvCydXlkT68ls2Mf47+SO C42tDcNjHspMFSFmyHFYV6Q= X-Received: by 2002:a05:6830:6:: with SMTP id c6mr3006263otp.14.1564085559039; Thu, 25 Jul 2019 13:12:39 -0700 (PDT) Received: from [192.168.1.114] (162-195-240-247.lightspeed.sntcca.sbcglobal.net. [162.195.240.247]) by smtp.gmail.com with ESMTPSA id 20sm8615958oth.43.2019.07.25.13.12.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Jul 2019 13:12:38 -0700 (PDT) Subject: Re: [PATCH v6 04/16] nvme-core: introduce nvme_get_by_path() To: Keith Busch , Logan Gunthorpe Cc: Matthew Wilcox , linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org, Christoph Hellwig , Jens Axboe , Chaitanya Kulkarni , Max Gurtovoy , Stephen Bates References: <20190725172335.6825-1-logang@deltatee.com> <20190725172335.6825-5-logang@deltatee.com> <20190725175023.GA30641@bombadil.infradead.org> <20190725195835.GA7317@localhost.localdomain> From: Sagi Grimberg Message-ID: <0b7e5d9f-207c-ee4e-a992-024c178cdd49@grimberg.me> Date: Thu, 25 Jul 2019 13:12:32 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190725195835.GA7317@localhost.localdomain> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >>>> nvme_get_by_path() is analagous to blkdev_get_by_path() except it >>>> gets a struct nvme_ctrl from the path to its char dev (/dev/nvme0). >>>> >>>> The purpose of this function is to support NVMe-OF target passthru. >>> >>> I can't find anywhere that you use this in this patchset. >>> >> >> Oh sorry, the commit message is out of date the function was actually >> called nvme_ctrl_get_by_path() and it's used in Patch 10. > > Instead of by path, could we have configfs take something else, like > the unique controller instance or serial number? I know that's different > than how we handle blocks and files, but that way nvme core can lookup > the cooresponding controller without adding new cdev dependencies. We could... but did we find sufficient justification to have the user handle passthru devices differently than any other backend? once we commit to an interface its very hard to change.