From: Sage Weil Date: Fri, 10 Jun 2011 18:43:13 +0000 (+0000) Subject: Btrfs: clear current->journal_info on async transaction commit X-Git-Tag: v3.0-rc3~9^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=38e880540f983045da7a00fbc50daad238207fc5;p=pandora-kernel.git 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 Tested-by: Jim Schutt Signed-off-by: Chris Mason --- Reading git-diff-tree failed