[PATCH] rcu_sync: Use RCU_LOCKDEP_WARN() rather than rcu_lockdep_assert()

From: Oleg Nesterov
Date: Mon Sep 14 2015 - 10:54:10 EST


rcu_lockdep_assert() is deprecated, change rcu_sync_lockdep_assert()
to use RCU_LOCKDEP_WARN().

Reported-by: Fengguang Wu <fengguang.wu@xxxxxxxxx>
Signed-off-by: Oleg Nesterov <oleg@xxxxxxxxxx>
---
kernel/rcu/sync.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/kernel/rcu/sync.c b/kernel/rcu/sync.c
index 56ae79d..be922c9 100644
--- a/kernel/rcu/sync.c
+++ b/kernel/rcu/sync.c
@@ -65,8 +65,8 @@ enum { CB_IDLE = 0, CB_PENDING, CB_REPLAY };
#ifdef CONFIG_PROVE_RCU
void rcu_sync_lockdep_assert(struct rcu_sync *rsp)
{
- rcu_lockdep_assert(gp_ops[rsp->gp_type].held(),
- "suspicious rcu_sync_is_idle() usage");
+ RCU_LOCKDEP_WARN(!gp_ops[rsp->gp_type].held(),
+ "suspicious rcu_sync_is_idle() usage");
}
#endif

--
2.4.3


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/