]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: use down_read_nested to make lockdep silent
authorLiu Bo <bo.li.liu@oracle.com>
Thu, 1 Dec 2016 00:11:04 +0000 (16:11 -0800)
committerDavid Sterba <dsterba@suse.com>
Tue, 3 Jan 2017 14:19:17 +0000 (15:19 +0100)
commitc8233f3307b59adf503e35974388d7ed968db9f2
tree11df9f784d72ca301b9bfca794fe70c9a0c43628
parent566c3090f952449c85b93f019a6cc98f7597d16e
Btrfs: use down_read_nested to make lockdep silent

If @block_group is not @used_bg, it'll try to get @used_bg's lock without
droping @block_group 's lock and lockdep has throwed a scary deadlock warning
about it.
Fix it by using down_read_nested.

Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent-tree.c