On 2019-07-25 1:58 p.m., Keith Busch wrote:
> On Thu, Jul 25, 2019 at 11:54:18AM -0600, Logan Gunthorpe wrote:
>>
>>
>> On 2019-07-25 11:50 a.m., Matthew Wilcox wrote:
>>> On Thu, Jul 25, 2019 at 11:23:23AM -0600, Logan Gunthorpe wrote:
>>>> 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.
Well the previous version of the patchset just used the ctrl name
("nvme1") and looped through all the controllers to find a match. But
this sucks because of the inconsistency and the fact that the name can
change if hardware changes and the number changes. Allowing the user to
make use of standard udev rules seems important to me.
Logan
- [PATCH v6 16/16] nvmet-passthru: support block accounting Logan Gunthorpe
- [PATCH v6 12/16] nvmet-core: don't check the data len for ... Logan Gunthorpe
- [PATCH v6 14/16] block: don't check blk_rq_is_passthrough(... Logan Gunthorpe
- [PATCH v6 15/16] block: call blk_account_io_start() in blk... Logan Gunthorpe
- [PATCH v6 10/16] nvmet-passthru: add enable/disable helper... Logan Gunthorpe
- [PATCH v6 04/16] nvme-core: introduce nvme_get_by_path() Logan Gunthorpe
- Re: [PATCH v6 04/16] nvme-core: introduce nvme_get_by... Matthew Wilcox
- Re: [PATCH v6 04/16] nvme-core: introduce nvme_ge... Logan Gunthorpe
- Re: [PATCH v6 04/16] nvme-core: introduce nvm... Keith Busch
- Re: [PATCH v6 04/16] nvme-core: introduce... Sagi Grimberg
- Re: [PATCH v6 04/16] nvme-core: introduce... Logan Gunthorpe
- Re: [PATCH v6 04/16] nvme-core: intr... Keith Busch
- Re: [PATCH v6 04/16] nvme-core: ... Logan Gunthorpe
- [PATCH v6 09/16] nvmet-passthru: add passthru code to proc... Logan Gunthorpe
- [PATCH v6 05/16] nvme-core: export existing ctrl and ns in... Logan Gunthorpe
- Re: [PATCH v6 00/16] nvmet: add target passthru commands s... Hannes Reinecke
- Re: [PATCH v6 00/16] nvmet: add target passthru comma... Logan Gunthorpe
- Re: [PATCH v6 00/16] nvmet: add target passthru c... Sagi Grimberg
- Re: [PATCH v6 00/16] nvmet: add target passth... Logan Gunthorpe
- Re: [PATCH v6 00/16] nvmet: add target pa... Sagi Grimberg
- Re: [PATCH v6 00/16] nvmet: add targ... Logan Gunthorpe
