diff options
author | 2022-05-29 07:13:09 -0600 | |
---|---|---|
committer | 2022-05-29 07:36:31 -0600 | |
commit | 605f7415ecfb426610195dd6c7577b30592b3369 (patch) | |
tree | fa9c0bb18d2267c20a6a6f69d719ea427989efe9 /tools/perf/scripts/python/call-graph-from-sql.py | |
parent | block: use bio_queue_enter instead of blk_queue_enter in bio_poll (diff) | |
download | linux-dev-605f7415ecfb426610195dd6c7577b30592b3369.tar.xz linux-dev-605f7415ecfb426610195dd6c7577b30592b3369.zip |
block: make bioset_exit() fully resilient against being called twice
Most of bioset_exit() is fine being called twice, as it clears the
various allocations etc when they are freed. The exception is
bio_alloc_cache_destroy(), which does not clear ->cache when it has
freed it.
This isn't necessarily a bug, but can be if buggy users does call the
exit path more then once, or with just a memset() bioset which has
never been initialized. dm appears to be one such user.
Fixes: be4d234d7aeb ("bio: add allocation cache abstraction")
Link: https://lore.kernel.org/linux-block/YpK7m+14A+pZKs5k@casper.infradead.org/
Reported-by: Matthew Wilcox <willy@infradead.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions