diff options
| author | Christoph Hellwig <[email protected]> | 2021-05-21 07:50:54 +0200 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2021-06-01 07:42:23 -0600 |
| commit | 958229a7c55f219b1cff99f939dabbc1b6ba7161 (patch) | |
| tree | 95e14b94cb882656a3337f78f19102f305c1b515 /tools/perf/scripts/python/bin | |
| parent | 0d1feb72ffd8578f6f167ca15b2096c276c1f6df (diff) | |
block: add a flag to make put_disk on partially initalized disks safer
Add a flag to indicate that __device_add_disk did grab a queue reference
so that disk_release only drops it if we actually had it. This sort
out one of the major pitfals with partially initialized gendisk that
a lot of drivers did get wrong or still do.
Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Hannes Reinecke <[email protected]>
Reviewed-by: Luis Chamberlain <[email protected]>
Reviewed-by: Ulf Hansson <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions