diff options
author | Sage Weil <sage@newdream.net> | 2011-06-10 18:43:13 +0000 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2011-06-10 16:42:29 -0400 |
commit | 38e880540f983045da7a00fbc50daad238207fc5 (patch) | |
tree | 3221e77ecf07f3a25037fccc304788aab33e0724 /sound/i2c | |
parent | 38e87880666091fe9c572a7a2ed2e771d97ca5aa (diff) | |
download | op-kernel-dev-38e880540f983045da7a00fbc50daad238207fc5.zip op-kernel-dev-38e880540f983045da7a00fbc50daad238207fc5.tar.gz |
Btrfs: clear current->journal_info on async transaction commit
Normally current->jouranl_info is cleared by commit_transaction. For an
async snap or subvol creation, though, it runs in a work queue. Clear
it in btrfs_commit_transaction_async() to avoid leaking a non-NULL
journal_info when we return to userspace. When the actual commit runs in
the other thread it won't care that it's current->journal_info is already
NULL.
Signed-off-by: Sage Weil <sage@newdream.net>
Tested-by: Jim Schutt <jaschut@sandia.gov>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'sound/i2c')
0 files changed, 0 insertions, 0 deletions