From: Al Viro Date: Thu, 17 Nov 2011 20:05:22 +0000 (-0500) Subject: btrfs: fix a deadlock in btrfs_scan_one_device() X-Git-Tag: v3.3-rc1~25^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=10f6327b5d26660e06120ba17cff993cb616b1d2;p=pandora-kernel.git btrfs: fix a deadlock in btrfs_scan_one_device() pathname resolution under a global mutex, taken on some paths in ->mount() is a Bad Idea(tm) - think what happens if said pathname resolution triggers automount of some btrfs instance and walks into attempt to grab the same mutex. Deadlock - we are waiting for daemon to finish walking the path, daemon is waiting for us to release the mutex... Signed-off-by: Al Viro --- Reading git-diff-tree failed