[PATCH] NVMe: Use IDA for namespace disk naming

Keith Busch keith.busch at intel.com
Wed Feb 24 06:58:36 PST 2016


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.



More information about the Linux-nvme mailing list