summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/acl.c
diff options
context:
space:
mode:
authorJosef Bacik <josef@redhat.com>2009-11-13 21:12:59 +0100
committerChris Mason <chris.mason@oracle.com>2010-01-18 02:40:30 +0100
commit11dfe35a0108097f2df1f042c485fa7f758c2cdf (patch)
tree83d5af6992db15ee61bc0c960626c378a2f5b436 /fs/btrfs/acl.c
parentBtrfs: deal with NULL acl sent to btrfs_set_acl (diff)
downloadlinux-11dfe35a0108097f2df1f042c485fa7f758c2cdf.tar.xz
linux-11dfe35a0108097f2df1f042c485fa7f758c2cdf.zip
Btrfs: fix possible panic on unmount
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>
Diffstat (limited to 'fs/btrfs/acl.c')
0 files changed, 0 insertions, 0 deletions