[PATCH] nvme: avoid connecting to the same subsystem from the same path gain.

Guan Junxiong guanjunxiong at huawei.com
Thu Apr 27 00:16:00 PDT 2017



On 2017/4/27 14:40, Christoph Hellwig wrote:
> On Tue, Apr 25, 2017 at 09:20:00AM +0800, Guan Junxiong wrote:
>> Hi ,Christoph:
>>    What's the benefits of this feature? If we execute the following cmd
>> 10 times, it will generate 10 character and at least 20 block devices.
> 
> The number of block devices will depend on the number of namespaces
> configured, but yes, this is expected.  The NVMe architecture allows
> for multiple connections from a given host to a subsystem.
> 
> .
> 
Hi, Christoph,Thanks for your reply!

Currently, the number of block devices will depend on both the number of
namespaces configured in a subsystem and the number of connections created by
connect command.

In addition , I still have the suggestion:
Can this feature or problematic behavior be adjusted to prevent generating
another block devices when a new connection is created from a given host to
a subsystem via the same patho< Maybe a character device (controller) or
block device (namespaces) can represent more connections given the same path.

Looking forward for you response. Thanks.





More information about the Linux-nvme mailing list