summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorJosef Bacik <josef@redhat.com>2009-11-13 20:12:59 +0000
committerGreg Kroah-Hartman <gregkh@suse.de>2010-08-13 13:20:05 -0700
commitfad9f7ba5e105ae770ac6b44e4b356445a1091b9 (patch)
tree0bfc9a522e6096ba13aee326df55eb7118053e68 /sound
parentf7733c6a95d6406a55b6e29b2ff15ac22f741bc5 (diff)
Btrfs: fix possible panic on unmount
commit 11dfe35a0108097f2df1f042c485fa7f758c2cdf upstream. We can race with the unmount of an fs and the stopping of a kthread where we will free the block group before we're done using it. The reason for this is because we do not hold a reference on the block group while its caching, since the allocator drops its reference once it exits or moves on to the next block group. This patch fixes the problem by taking a reference to the block group before we start caching and dropping it when we're done to make sure all accesses to the block group are safe. Thanks, Signed-off-by: Josef Bacik <josef@redhat.com> Signed-off-by: Chris Mason <chris.mason@oracle.com> Acked-by: Jeff Mahoney <jeffm@suse.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions