diff options
author | Luis Chamberlain <[email protected]> | 2021-09-27 15:03:00 -0700 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2021-10-18 14:41:37 -0600 |
commit | 573effb298011d3fcabc9b12025cf637f8a07911 (patch) | |
tree | 3d6ee6512b4c34654bd40c68002f7ce952499bb1 /tools/perf/scripts/python/check-perf-trace.py | |
parent | 44a469b6acae6ad05c4acca8429467d1d50a8b8d (diff) |
block/ataflop: add registration bool before calling del_gendisk()
The ataflop assumes del_gendisk() is safe to call, this is only
true because add_disk() does not return a failure, but that will
change soon. And so, before we get to adding error handling for
that case, let's make sure we keep track of which disks actually
get registered. Then we use this to only call del_gendisk for them.
Signed-off-by: Luis Chamberlain <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions