[PATCH V2] nvme: free pre-allocated queue if create ioq goes wrong

Minwoo Im minwoo.im.dev at gmail.com
Thu Jan 18 14:52:08 PST 2018


On Thu, Jan 18, 2018 at 8:31 PM, Keith Busch <keith.busch at intel.com> wrote:
>
> The API doesn't let us set the nr_hw_queues to 0. We'd have to free the
> tagset at that point, but we don't free it until the last open reference
> is dropped. I can't seem to recall why that's necessary but I'll stare
> at this a bit longer see if it makes sense. The memory the driver is
> holding onto is not really a big deal either way.

Thank you for your time, Keith.

I was wondering if I would have to clear the whole tagset or not.
But as you said, If the memory driver holds is not really important
and no one is
referring it then we can skip it.



More information about the Linux-nvme mailing list