]> 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)
commitd40cf9d52c7f18099c49f4827f1b04d74a81bc84
tree9f5fe8f71a2793b5f651ef6c535d9116b5094348
parent5937c54bad8f18cc98a5b965f8507df1d94c98bb
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