Skip to content

Commit

Permalink
dm btree: silence lockdep lock inversion in dm_btree_del()
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jthornber authored and snitm committed Jul 6, 2015
1 parent a822c83 commit 1c75187
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/md/persistent-data/dm-btree.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1c75187

Please sign in to comment.