summaryrefslogtreecommitdiffstats
path: root/drivers/memstick/core/mspro_block.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2022-02-15 10:45:11 +0100
committerJens Axboe <axboe@kernel.dk>2022-02-16 19:44:24 -0700
commite2efa0796607efe60c708271be483c3a2b0128de (patch)
tree62789bdb79fc0f7d907414704e78d01fb35d82eb /drivers/memstick/core/mspro_block.c
parent76792055c4c8b2472ca1ae48e0ddaf8497529f08 (diff)
downloadlinux-stable-e2efa0796607efe60c708271be483c3a2b0128de.tar.gz
linux-stable-e2efa0796607efe60c708271be483c3a2b0128de.tar.bz2
linux-stable-e2efa0796607efe60c708271be483c3a2b0128de.zip
memstick/ms_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> Link: https://lore.kernel.org/r/20220215094514.3828912-3-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/memstick/core/mspro_block.c')
0 files changed, 0 insertions, 0 deletions