]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: skip locking if searching the commit root in csum lookup
authorJosef Bacik <josef@redhat.com>
Sun, 11 Sep 2011 14:52:24 +0000 (10:52 -0400)
committerChris Mason <chris.mason@oracle.com>
Sun, 11 Sep 2011 14:52:24 +0000 (10:52 -0400)
commit8d0c5a510645dd6a80312d933e8ada896b5a2bdf
tree9f5fe8f71a2793b5f651ef6c535d9116b5094348
parent1119a2625e00cc60ccbcb45e988cf4318bfa0f09
Btrfs: skip locking if searching the commit root in csum lookup

It's not enough to just search the commit root, since we could be cow'ing the
very block we need to search through, which would mean that its locked and we'll
still deadlock.  So use path->skip_locking as well.  Thanks,

Signed-off-by: Josef Bacik <josef@redhat.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/file-item.c