[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1332895637-32572-5-git-send-email-andi@firstfloor.org>
Date: Tue, 27 Mar 2012 17:47:08 -0700
From: Andi Kleen <andi@...stfloor.org>
To: akpm@...ux-foundation.org
Cc: linux-kernel@...r.kernel.org, Andi Kleen <ak@...ux.intel.com>,
gregkh@...uxfoundation.org
Subject: [PATCH 04/13] staging/zmem: Use lockdep_assert_held instead of spin_is_locked
From: Andi Kleen <ak@...ux.intel.com>
WARN_ON(!spin_is_locked()) will always trigger on UP.
Use lockdep_assert_held instead.
Cc: gregkh@...uxfoundation.org
Signed-off-by: Andi Kleen <ak@...ux.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists