Commit 51e94a20 authored by Joe Thornber's avatar Joe Thornber Committed by Zefan Li

dm btree: silence lockdep lock inversion in dm_btree_del()

commit 1c751879 upstream.

Allocate memory using GFP_NOIO when deleting a btree.  dm_btree_del()
can be called via an ioctl and we don't want to recurse into the FS or
block layer.
Signed-off-by: default avatarJoe Thornber <ejt@redhat.com>
Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
Signed-off-by: default avatarZefan Li <lizefan@huawei.com>
parent c087472c
...@@ -235,7 +235,7 @@ int dm_btree_del(struct dm_btree_info *info, dm_block_t root) ...@@ -235,7 +235,7 @@ int dm_btree_del(struct dm_btree_info *info, dm_block_t root)
int r; int r;
struct del_stack *s; struct del_stack *s;
s = kmalloc(sizeof(*s), GFP_KERNEL); s = kmalloc(sizeof(*s), GFP_NOIO);
if (!s) if (!s)
return -ENOMEM; return -ENOMEM;
s->tm = info->tm; s->tm = info->tm;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment