1
0
Fork 0

dm btree: silence lockdep lock inversion in dm_btree_del()

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: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Cc: stable@vger.kernel.org
steinar/wifi_calib_4_9_kernel
Joe Thornber 2015-07-03 14:51:32 +01:00 committed by Mike Snitzer
parent a822c83e47
commit 1c7518794a
1 changed files with 1 additions and 1 deletions

View File

@ -255,7 +255,7 @@ int dm_btree_del(struct dm_btree_info *info, dm_block_t root)
int r;
struct del_stack *s;
s = kmalloc(sizeof(*s), GFP_KERNEL);
s = kmalloc(sizeof(*s), GFP_NOIO);
if (!s)
return -ENOMEM;
s->info = info;