diff options
| author | Yu Kuai <[email protected]> | 2022-11-15 22:10:53 +0800 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2022-11-16 15:19:56 -0700 |
| commit | 3b3449c1e6c3fe19f62607ff4f353f8bb82d5c4e (patch) | |
| tree | 2582441eb9c850073343c9726fbeb1dde9e6f007 /tools/perf/scripts/python | |
| parent | 62f535e1f061b4c2cc76061b6b59af9f9335ee34 (diff) | |
block: store the holder kobject in bd_holder_disk
We hold a reference to the holder kobject for each bd_holder_disk,
so to make the code a bit more robust, use a reference to it instead
of the block_device. As long as no one clears ->bd_holder_dir in
before freeing the disk, this isn't strictly required, but it does
make the code more clear and more robust.
Orignally-From: Christoph Hellwig <[email protected]>
Signed-off-by: Yu Kuai <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions