staging/zmem: Use lockdep_assert_held instead of spin_is_locked
WARN_ON(!spin_is_locked()) will always trigger on UP. Use lockdep_assert_held instead. Signed-off-by: Andi Kleen <ak@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
40ec6c5421
commit
bc01caf53d
drivers/staging/zcache
|
@ -47,7 +47,7 @@
|
||||||
#define ASSERT_INVERTED_SENTINEL(_x, _y) do { } while (0)
|
#define ASSERT_INVERTED_SENTINEL(_x, _y) do { } while (0)
|
||||||
#endif
|
#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
|
* A pool is the highest-level data structure managed by tmem and
|
||||||
|
|
Loading…
Reference in New Issue