summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-slave-time.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2022-03-08 06:51:53 +0100
committerJens Axboe <axboe@kernel.dk>2022-03-09 03:40:01 +0100
commit9c63f7f6ff3142edc81776df35d79e088df6ba6c (patch)
tree7770307bb6d16ccf23cae8d0de3ac7e7697fbe54 /drivers/spi/spi-slave-time.c
parentsd: delay calling free_opal_dev (diff)
downloadlinux-9c63f7f6ff3142edc81776df35d79e088df6ba6c.tar.xz
linux-9c63f7f6ff3142edc81776df35d79e088df6ba6c.zip
sd: implement ->free_disk to simplify refcounting
Implement the ->free_disk method to to put struct scsi_disk when the last gendisk reference count goes away. This removes the need to clear ->private_data and thus freeze the queue on unbind. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Ming Lei <ming.lei@redhat.com> Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com> Link: https://lore.kernel.org/r/20220308055200.735835-8-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/spi/spi-slave-time.c')
0 files changed, 0 insertions, 0 deletions