Re: [PATCH 1/7] block: add a cdrom_device_info pointer to struct gendisk

From: Hannes Reinecke
Date: Mon Apr 27 2020 - 02:16:10 EST


On 4/25/20 9:57 AM, Christoph Hellwig wrote:
Add a pointer to the CDROM information structure to struct gendisk.
This will allow various removable media file systems to call directly
into the CDROM layer instead of abusing ioctls with kernel pointers.

Signed-off-by: Christoph Hellwig <hch@xxxxxx>
Reviewed-by: Damien Le Moal <damien.lemoal@xxxxxxx>
---
drivers/block/paride/pcd.c | 2 +-
drivers/cdrom/cdrom.c | 5 ++++-
drivers/cdrom/gdrom.c | 2 +-
drivers/ide/ide-cd.c | 3 +--
drivers/scsi/sr.c | 3 +--
include/linux/cdrom.h | 2 +-
include/linux/genhd.h | 9 +++++++++
7 files changed, 18 insertions(+), 8 deletions(-)

Reviewed-by: Hannes Reinecke <hare@xxxxxxx

Cheers,

Hannes
--
Dr. Hannes Reinecke Teamlead Storage & Networking
hare@xxxxxxx +49 911 74053 688
SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 NÃrnberg
HRB 36809 (AG NÃrnberg), GeschÃftsfÃhrer: Felix ImendÃrffer