summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/delayed-inode.c
diff options
context:
space:
mode:
authorOmar Sandoval <osandov@fb.com>2019-09-16 11:30:56 -0700
committerDavid Sterba <dsterba@suse.com>2019-11-18 12:46:48 +0100
commit57d4f0b863272ba04ba85f86bfdc0f976f0af91c (patch)
tree9e09bcb870dad12cdffc8a68166926f9c17a242b /fs/btrfs/delayed-inode.c
parente732fe95e4cad35fc1df278c23a32903341b08b3 (diff)
downloadlinux-57d4f0b863272ba04ba85f86bfdc0f976f0af91c.tar.bz2
btrfs: don't prematurely free work in scrub_missing_raid56_worker()
Currently, scrub_missing_raid56_worker() puts and potentially frees sblock (which embeds the work item) and then submits a bio through scrub_wr_submit(). This is another potential instance of the bug in "btrfs: don't prematurely free work in run_ordered_work()". Fix it by dropping the reference after we submit the bio. Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de> Signed-off-by: Omar Sandoval <osandov@fb.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/delayed-inode.c')
0 files changed, 0 insertions, 0 deletions