[lkml]   [2003]   [Mar]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: PCI driver module unload race?

    On Mon, 10 Mar 2003, Greg KH wrote:

    > > It seems that the semaphore in bus_add_device() makes this unnecessary.
    > Hm, yes. I think you are correct.
    > So this patch is not needed, and the struct module * can be ripped out
    > of struct usb_driver too :)

    I think it's not easy. I haven't studied the code completely yet, but e.g.
    when you attach a device to a driver you also have to get a reference to
    the driver.
    I think there are more interesting races, e.g. when you create a sysfs
    symlink, that symlink might also have references to a module.

    bye, Roman

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:33    [W:0.019 / U:59.252 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site