[PATCH] NVMe: Use IDA for namespace disk naming

Christoph Hellwig hch at infradead.org
Wed Feb 24 11:33:29 PST 2016


On Wed, Feb 24, 2016 at 02:58:36PM +0000, Keith Busch wrote:
> On Wed, Feb 24, 2016 at 05:05:20AM -0800, Christoph Hellwig wrote:
> > But the bdi name embedds the major/minor of the device.  So if we
> > haven't fully torn down the device we might run into sysfs name
> > conflicts.
> 
> We don't tear down the minor until the final put_disk, fixing the
> major/minor lifetime issue. That was commit:
> 
>   https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=2da78092dda13f1efd26edbbf99a567776913750
> 
> The namespace's disk_name using the IDA is released in the same path as
> the final put_disk, so I think we're safe.

Ok, we should be fine then:

Reviewed-by: Christoph Hellwig <hch at lst.de>



More information about the Linux-nvme mailing list