diff options
author | Christoph Hellwig <hch@lst.de> | 2022-06-19 08:05:48 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-06-28 06:30:26 -0600 |
commit | e8b58ef09e84c15cf782b01cfc73cc5b1180d519 (patch) | |
tree | 9a9e981a062bddd8eebaac61dfd2930596861b29 /block/blk-core.c | |
parent | ec5263f422a3364442e0db2d9c2866d9154cbcc4 (diff) |
mtip32xx: fix device removal
Use the proper helper to mark a surpise removal, remove the gendisk as
soon as possible when removing the device and implement the ->free_disk
callback to ensure the private data is alive as long as the gendisk has
references.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Link: https://lore.kernel.org/r/20220619060552.1850436-3-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-core.c')
0 files changed, 0 insertions, 0 deletions