On Wed, 2017-01-25 at 18:25 +0100, Christoph Hellwig wrote:
Currently blk-mq always allocates the sense buffer using normal GFP_KERNE=
L
allocation. Refactor the cmd pool code to split the cmd and sense alloca=
tion
and share the code to allocate the sense buffers as well as the sense buf=
fer
slab caches between the legacy and blk-mq path.
=20
Note that this switches to lazy allocation of the sense slab caches - the
slab caches (not the actual allocations) won't be destroy until the scsi
module is unloaded instead of keeping track of hosts using them.
Reviewed-by: Bart Van Assche <redacted>=