diff options
| author | Omar Sandoval <[email protected]> | 2019-09-16 18:30:56 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2019-11-18 11:46:48 +0000 |
| commit | 57d4f0b863272ba04ba85f86bfdc0f976f0af91c (patch) | |
| tree | 9e09bcb870dad12cdffc8a68166926f9c17a242b /fs/btrfs/async-thread.h | |
| parent | btrfs: don't prematurely free work in reada_start_machine_worker() (diff) | |
| download | kernel-57d4f0b863272ba04ba85f86bfdc0f976f0af91c.tar.gz kernel-57d4f0b863272ba04ba85f86bfdc0f976f0af91c.zip | |
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 <[email protected]>
Signed-off-by: Omar Sandoval <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/async-thread.h')
0 files changed, 0 insertions, 0 deletions
