diff options
author | 2021-07-22 09:53:58 +0200 | |
---|---|---|
committer | 2021-08-02 13:37:28 -0600 | |
commit | 9d3b8813895d737fcef4ec8df518f67e5cc381b8 (patch) | |
tree | 13db699bd15205a45a9b571c4d8643000f9b61dc /tools/perf/scripts/python/export-to-postgresql.py | |
parent | block: allocate bd_meta_info later in add_partitions (diff) | |
download | wireguard-linux-9d3b8813895d737fcef4ec8df518f67e5cc381b8.tar.xz wireguard-linux-9d3b8813895d737fcef4ec8df518f67e5cc381b8.zip |
block: change the refcounting for partitions
Instead of acquiring an inode reference on open make sure partitions
always hold device model references to the disk while alive, and switch
open to grab only a device model reference to the opened block device.
If that is a partition the disk reference is transitively held by the
partition already.
Link: https://lore.kernel.org/r/20210722075402.983367-6-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions