From: Stefan Behrens Date: Fri, 27 Apr 2012 16:41:46 +0000 (-0400) Subject: Btrfs: fix block_rsv and space_info lock ordering X-Git-Tag: v3.4-rc5~6^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f699d38b6556c393ac80f1c23c2053502a51631;p=pandora-kernel.git Btrfs: fix block_rsv and space_info lock ordering may_commit_transaction() calls spin_lock(&space_info->lock); spin_lock(&delayed_rsv->lock); and update_global_block_rsv() calls spin_lock(&block_rsv->lock); spin_lock(&sinfo->lock); Lockdep complains about this at run time. Everywhere except in update_global_block_rsv(), the space_info lock is the outer lock, therefore the locking order in update_global_block_rsv() is changed. Signed-off-by: Stefan Behrens Signed-off-by: Chris Mason --- Reading git-diff-tree failed