]> www.infradead.org Git - users/hch/block.git/commit
memstick/mspro_block: simplify refcounting
authorChristoph Hellwig <hch@lst.de>
Sat, 29 Jan 2022 08:57:34 +0000 (09:57 +0100)
committerChristoph Hellwig <hch@lst.de>
Tue, 15 Feb 2022 08:08:20 +0000 (09:08 +0100)
commit84d894ffdcb0176703248668dbb36e4f2bc5bf24
treec52f28b9ba8c324526afbc3e88ed2c7d3b719f05
parentd1b6fb8f689fa13a2656ce9c6399be82326b56a4
memstick/mspro_block: simplify refcounting

Implement the ->free_disk method to free the msb_data structure only once
the last gendisk reference goes away instead of keeping a local
refcount.

Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/memstick/core/mspro_block.c