]> git.baikalelectronics.ru Git - kernel.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)
commitd377702638ce4799038886b6548b251e6f60dc6b
tree443ef957c07dd59b979057be737f733e5142b2d3
parent8425ccaa3cdd21ff6e9152227fd345f219fa1346
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