public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* Removal of driverfs files in drivers/cdrom/cdrom.c
@ 2002-07-24 21:57 Patrick Mochel
  2002-07-25 13:36 ` sullivan
  0 siblings, 1 reply; 4+ messages in thread
From: Patrick Mochel @ 2002-07-24 21:57 UTC (permalink / raw)
  To: linux-scsi



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



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-07-29 19:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-24 21:57 Removal of driverfs files in drivers/cdrom/cdrom.c Patrick Mochel
2002-07-25 13:36 ` sullivan
2002-07-28 19:50   ` James Bottomley
2002-07-29 19:46     ` Patrick Mochel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox