From: Sage Weil Date: Thu, 30 Aug 2012 22:26:15 +0000 (-0600) Subject: Btrfs: pass lockdep rwsem metadata to async commit transaction X-Git-Tag: v3.7-rc1~71^2~82 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6fc4e3548598d10a5e947797a09cbc1b257a22ab;p=pandora-kernel.git Btrfs: pass lockdep rwsem metadata to async commit transaction The freeze rwsem is taken by sb_start_intwrite() and dropped during the commit_ or end_transaction(). In the async case, that happens in a worker thread. Tell lockdep the calling thread is releasing ownership of the rwsem and the async thread is picking it up. XFS plays the same trick in fs/xfs/xfs_aops.c. Signed-off-by: Sage Weil --- Reading git-diff-tree failed