On Thu, Apr 23, 2015 at 07:50:41AM +0200, Hannes Reinecke wrote:
> Yes, that's okay with me.
> 
> Personally I would be using mempools when you need lots of small,
> frequently changed allocations (like sg elements), and kzalloc() for
> large or infrequently changed bits of memory.

The array lookup is a small O(1) cost, so it's aways cheaper than
a mempool for this case where we allocate on object per tag.

Even better would be to use the command private data, but that needs
the patches that allow the driver to initializse it that Jens is working
on first.
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to