summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/sr.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2022-03-08 06:51:53 +0100
committerJens Axboe <axboe@kernel.dk>2022-03-08 19:40:01 -0700
commit9c63f7f6ff3142edc81776df35d79e088df6ba6c (patch)
tree7770307bb6d16ccf23cae8d0de3ac7e7697fbe54 /drivers/scsi/sr.h
parent534cf52aa9c18d87599a8811a39735c1b62742a0 (diff)
downloadlinux-9c63f7f6ff3142edc81776df35d79e088df6ba6c.tar.bz2
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/scsi/sr.h')
0 files changed, 0 insertions, 0 deletions