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)
commitddf23b3fc6850bd4654d51ec9457fe7c77cde51e
tree9f5fe8f71a2793b5f651ef6c535d9116b5094348
parente0b6d65be57fb37ca67b04ce8964546a74d2125c
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