lkml.org 
[lkml]   [2006]   [Jan]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH 2.6.16-rc1-git4] accessfs: a permission managing filesystem
    From
    Date
    On Mon, 2006-01-30 at 11:25 +0100, Jan Engelhardt wrote:
    > >> You can't do that.
    > >
    > >Exactly why not? Assuming there are zero users left in the kernel.....
    > >(which highly obviously is a prerequisite for even thinking about such a
    > >step)
    >
    > Documentation/mutex-design.txt:
    > * - mutexes may not be used in irq contexts
    >
    > I need some locking strategy within irq contexts, and that suggests
    > semaphores do the job.

    well... maybe.
    If you need to mess inside irq context, spinlocks sound more the right
    thing. Or if you need to do a "I'm done" in the irq and a "sleep until
    done" thing in process context, then you really should use completions
    instead.


    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2006-01-30 11:33    [W:0.019 / U:31.456 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site