commit | 6fc4e3548598d10a5e947797a09cbc1b257a22ab | [log] [tgz] |
---|---|---|
author | Sage Weil <sage@inktank.com> | Thu Aug 30 16:26:15 2012 -0600 |
committer | Chris Mason <chris.mason@fusionio.com> | Mon Oct 01 15:19:07 2012 -0400 |
tree | ad7e5727ef08cebffa0bc1c36af05c363f851218 | |
parent | 2aaa66558172b017f36bf38ae69372813dedee9d [diff] |
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 <sage@inktank.com>