[PATCH v5 10/14] nvmet-fcloop: don't wait for lport cleanup

Daniel Wagner dwagner at suse.de
Thu Apr 24 05:58:58 PDT 2025


On Thu, Apr 24, 2025 at 02:10:20PM +0200, Hannes Reinecke wrote:
> My point was more: you call kmem_cache_destroy() unconditionally upon
> exit. But the boilerplate says that you have to free all allocations
> from the kmem_cache before that call.
> Yet the exit function doesn't do that.
> Question is: what are the guarantees that the cache is empty upon exit?

The first loop will only terminate when all request have been freed,
thus it is safe to destroy the cache afterwards.



More information about the Linux-nvme mailing list