[lkml]   [2007]   [Nov]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [RFC 9/13] Char: nozomi, lock cleanup
    On Samstag 10 November 2007 00:48:52, you (Jiri Slaby) wrote:
    > nozomi, lock cleanup
    > - semaphore is deprecated, use mutex instead
    > - don't return -ERESTARTSYS when signal might not be pending since it's not
    > permitted (unknown retval mioght reach userspace)
    > - don't lock interruptible in close or the card might not be stopped on last
    > close

    Good catches. But i had to change it a bit, especially the mutex_trylock.
    From mutex.c: " is negated to the down_trylock() return values!
    Be careful about this when converting semaphores to mutexes." ;-)
    Now it works again (doesn't deadlock my card anymore).

    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: 2007-11-10 16:47    [W:0.019 / U:7.628 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site