]> www.infradead.org Git - users/hch/block.git/commit
mtip32xx: fix device removal
authorChristoph Hellwig <hch@lst.de>
Mon, 23 May 2022 07:55:06 +0000 (09:55 +0200)
committerChristoph Hellwig <hch@lst.de>
Sat, 18 Jun 2022 14:24:43 +0000 (16:24 +0200)
commitd3537b04a1fd912435e7c56a59b14d60c90652d0
tree2f3f941b4f9cefab9f0b6b72a4e80b0fe2193a3b
parent91e702a1cb8ceaf61636d545ec8374382db8b6e3
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>
drivers/block/mtip32xx/mtip32xx.c
drivers/block/mtip32xx/mtip32xx.h