diff options
author | Christoph Hellwig <hch@lst.de> | 2021-07-22 10:53:58 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-08-02 22:37:28 +0300 |
commit | 9d3b8813895d737fcef4ec8df518f67e5cc381b8 (patch) | |
tree | 13db699bd15205a45a9b571c4d8643000f9b61dc /drivers | |
parent | 0468c5323413c6903e4cbcef841a55e6c5578cd2 (diff) | |
download | linux-9d3b8813895d737fcef4ec8df518f67e5cc381b8.tar.xz |
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 'drivers')
0 files changed, 0 insertions, 0 deletions