So, I'm looking at changing the driverfs API. In doring so, I came across
this code in drivers/cdrom/cdrom.c:unregister_cdrom:
if (atomic_read (&cdi->cdrom_driverfs_dev.refcount)) {
device_remove_file (&cdi->cdrom_driverfs_dev, "name");
device_remove_file (&cdi->cdrom_driverfs_dev, "kdev");
put_device (&cdi->cdrom_driverfs_dev);
}
This looks wrong, based on the fact that it wasn't the cdrom layer that
created these files. They were, I believe, created by the SCSI cdrom
layer. So, why are they being removed here, esp. since they are removed at
a more general layer?
Thanks,
-pat
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
|