Skip to content
Commit 1a65e24b authored by Chris Mason's avatar Chris Mason
Browse files

Btrfs: move d_instantiate outside the transaction during mksubvol



Dave Sterba triggered a lockdep complaint about lock ordering
between the sb_internal lock and the cleaner semaphore.

btrfs_lookup_dentry() checks for orphans if we're looking up
the inode for a subvolume, and subvolume creation is triggering
the lookup with a transaction running.

This commit moves the d_instantiate after the transaction closes.

Signed-off-by: default avatarChris Mason <chris.mason@fusionio.com>
parent eb6b88d9
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment