[RFC 6/7] NVMe: Use genalloc to allocate CMB regions

Christoph Hellwig hch at infradead.org
Mon Aug 1 08:53:49 PDT 2016


On Mon, Aug 01, 2016 at 09:57:32AM +0300, Haggai Eran wrote:
> Register the CMB in a gen_pool dedicated to manage CMB regions. Use the
> pool to allocate the SQs to make sure they are registered.

And why would the NVMe driver care if "they are registered"?

Once we start allowing diverse CMB uses (what happened to Jon's patches
btw?) genalloc might be a good backend allocator, but without that
it's entirely pointless.  Also please don't introduce useless header
files.



More information about the Linux-nvme mailing list