summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-table.c
diff options
context:
space:
mode:
authorMike Snitzer <snitzer@redhat.com>2015-04-27 22:37:50 +0200
committerMike Snitzer <snitzer@redhat.com>2015-05-29 20:18:57 +0200
commitcbc4e3c1350beb47beab8f34ad9be3d34a20c705 (patch)
tree443ef957c07dd59b979057be737f733e5142b2d3 /drivers/md/dm-table.c
parentMerge remote-tracking branch 'jens/for-4.2/core' into dm-4.2 (diff)
downloadlinux-cbc4e3c1350beb47beab8f34ad9be3d34a20c705.tar.xz
linux-cbc4e3c1350beb47beab8f34ad9be3d34a20c705.zip
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>
Diffstat (limited to 'drivers/md/dm-table.c')
-rw-r--r--drivers/md/dm-table.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/dm-table.c b/drivers/md/dm-table.c
index a5f94125ad01..85e1d39e9a38 100644
--- a/drivers/md/dm-table.c
+++ b/drivers/md/dm-table.c
@@ -964,8 +964,8 @@ static int dm_table_alloc_md_mempools(struct dm_table *t, struct mapped_device *
return -EINVAL;
}
- if (!t->mempools)
- return -ENOMEM;
+ if (IS_ERR(t->mempools))
+ return PTR_ERR(t->mempools);
return 0;
}