]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
dm: do not allocate any mempools for blk-mq request-based DM
authorMike Snitzer <snitzer@redhat.com>
Mon, 27 Apr 2015 20:37:50 +0000 (16:37 -0400)
committerMike Snitzer <snitzer@redhat.com>
Fri, 29 May 2015 18:18:57 +0000 (14:18 -0400)
commitcbc4e3c1350beb47beab8f34ad9be3d34a20c705
tree443ef957c07dd59b979057be737f733e5142b2d3
parent183f7802e73e26206558864d1b67e64382257277
dm: do not allocate any mempools for blk-mq request-based DM

Do not allocate the io_pool mempool for blk-mq request-based DM
(DM_TYPE_MQ_REQUEST_BASED) in dm_alloc_rq_mempools().

Also refine __bind_mempools() to have more precise awareness of which
mempools each type of DM device uses -- avoids mempool churn when
reloading DM tables (particularly for DM_TYPE_REQUEST_BASED).

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-table.c
drivers/md/dm.c