projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Revert "dm: do not allocate any mempools for blk-mq request-based DM"
[linux-2.6-block.git]
/
drivers
/
md
/
dm-table.c
diff --git
a/drivers/md/dm-table.c
b/drivers/md/dm-table.c
index 85e1d39e9a38a568b7c05c1e4d49eda2e9b118fe..a5f94125ad01f6b3a3a43fd7ae78e9bad0747995 100644
(file)
--- 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 (
IS_ERR(t->mempools)
)
- return
PTR_ERR(t->mempools)
;
+ if (
!t->mempools
)
+ return
-ENOMEM
;
return 0;
}