[PATCH 5/6] nvme: Export subsystems to /sys/class/nvme-subsys
Keith Busch
keith.busch at intel.com
Mon Oct 2 10:15:38 PDT 2017
On Mon, Oct 02, 2017 at 06:56:32PM +0200, Christoph Hellwig wrote:
>
> > BTW, I just notice nvme_init_subsystem needs call nvme_put_subsystem in
> > the invalid duplicate subnqn case.
>
> We call __nvme_free_subsystem in that case, which should do the job.
We're calling __nvme_free_subsystem on the one that was allocated, not
the one that was found. The 'found' will have an additional reference
taken on it that isn't tracked.
More information about the Linux-nvme
mailing list