lkml.org 
[lkml]   [2012]   [Mar]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 04/11] staging/zmem: Use lockdep_assert_held instead of spin_is_locked
    Date
    From: Andi Kleen <ak@linux.intel.com>

    WARN_ON(!spin_is_locked()) will always trigger on UP.
    Use lockdep_assert_held instead.

    Cc: gregkh@linuxfoundation.org
    Signed-off-by: Andi Kleen <ak@linux.intel.com>
    ---
    drivers/staging/zcache/tmem.h | 2 +-
    1 files changed, 1 insertions(+), 1 deletions(-)

    diff --git a/drivers/staging/zcache/tmem.h b/drivers/staging/zcache/tmem.h
    index ed147c4..0d4aa82 100644
    --- a/drivers/staging/zcache/tmem.h
    +++ b/drivers/staging/zcache/tmem.h
    @@ -47,7 +47,7 @@
    #define ASSERT_INVERTED_SENTINEL(_x, _y) do { } while (0)
    #endif

    -#define ASSERT_SPINLOCK(_l) WARN_ON(!spin_is_locked(_l))
    +#define ASSERT_SPINLOCK(_l) lockdep_assert_held(_l)

    /*
    * A pool is the highest-level data structure managed by tmem and
    --
    1.7.7.6


    \
     
     \ /
      Last update: 2012-03-16 20:05    [W:0.019 / U:90.832 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site