[lkml]   [2004]   [Aug]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: PATCH: switch ide-proc to use the ide_key functionality
    On Tuesday 17 August 2004 02:13, Alan Cox wrote:
    > On Tue, Aug 17, 2004 at 01:35:11AM +0200, Bartlomiej Zolnierkiewicz wrote:
    > > Alan, 'ide_key' protection misses driver specfiic /proc/entries.
    > Ok need to fix that
    > > It is also still racy for some drivers because ide_register_hw() ->
    > > init_hwif_data() sets hwif->key to zero - you must set hwif->hold to 1.
    > ide_register_hw holds ide_setting_sem. I think that should be ok ?

    ide_setting_sem doesn't help situation when hwif is unregistered and some
    other driver is loaded later and takes this hwif using ide_register_hw().

    Highly unlikely but possible.

    > > Can't we solve the problem in simpler way by covering affected /proc
    > > handlers with ide_setting_sem?
    > You'd need to refcount the ide objects because the 'data' value is long
    > lived. I did consider this but it seemed more complex. It also leaves end
    > users able to open an ide file and prevent unloading although I'm not
    > sure it is a big issue.

    Yep. :/
    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 14:05    [W:0.021 / U:31.848 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site