Skip to content
Commit 81144949 authored by Josef Bacik's avatar Josef Bacik Committed by Chris Mason
Browse files

Btrfs: join the transaction in __btrfs_setxattr



With selinux on we end up calling __btrfs_setxattr when we create an inode,
which calls btrfs_start_transaction().  The problem is we've already called
that in btrfs_new_inode, and in btrfs_start_transaction we end up doing a
wait_current_trans().  If btrfs-transaction has started committing it will wait
for all handles to finish, while the other process is waiting for the
transaction to commit.  This is fixed by using btrfs_join_transaction, which
won't wait for the transaction to commit.  Thanks,

Signed-off-by: default avatarJosef Bacik <jbacik@redhat.com>
parent 8c087b51
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