[lkml]   [2004]   [Jan]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] rwlock_is_locked undefined for UP systems
    On Fri, Jan 16, 2004 at 07:15:11PM +0530, Prashanth T wrote:
    > Hi,
    > I had to use rwlock_is_locked( ) with linux2.6 for kdb and noticed that
    > this routine to be undefined for UP. I have attached the patch for 2.6.1
    > below to return 0 for rwlock_is_locked( ) on UP systems.
    > Please let me know.

    we don't implement spin_is_locked on UP either because there's no really
    usefull return value. The lock will never be taken on !SMP && !PREEMPT,
    but OTOH it's also not needed, so any assert on will give false results.
    And the assert is probably the only thing that the _is_locked routines
    could used for sanely.

    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:00    [W:0.018 / U:9.644 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site