diff options
author | Christoph Hellwig <hch@lst.de> | 2022-02-15 12:45:14 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-02-17 05:44:24 +0300 |
commit | 24b45e6c25173abcf8d5e82285212b47f2b0f86b (patch) | |
tree | 023885df01a520bdbaccb12c05389f2ad778371f /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 185ed423d1898ead071c18f6161959cd3cab2dde (diff) | |
download | linux-24b45e6c25173abcf8d5e82285212b47f2b0f86b.tar.xz |
virtio_blk: simplify refcounting
Implement the ->free_disk method to free the virtio_blk structure only
once the last gendisk reference goes away instead of keeping a local
refcount.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Link: https://lore.kernel.org/r/20220215094514.3828912-6-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions