]> www.infradead.org Git - users/hch/block.git/commit
sr: implement ->free_disk to simplify refcounting
authorChristoph Hellwig <hch@lst.de>
Fri, 18 Feb 2022 09:52:58 +0000 (10:52 +0100)
committerChristoph Hellwig <hch@lst.de>
Tue, 8 Mar 2022 05:28:26 +0000 (06:28 +0100)
commit43a3765b742c0e8eb09ced42a5a6c523978a65a0
treecfe75dbb1984d916105c9e20a710cc8b748f9e4d
parentb8643baba7ba5e4bff8d2a4e7de6c1ce4a855acf
sr: implement ->free_disk to simplify refcounting

Simplify the refcounting and remove the need to clear disk->private_data
by implementing the ->free_disk method.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/sr.c
drivers/scsi/sr.h