# \[PATCH RT 15/17\] rcu/torture: Comment out rcu\_bh ops on PREEMPT\_RT\_FULL

- From: Steven Rostedt \<rostedt@goodmis.org\>
- Date: 2016-03-02 15:45:21 
- List: linux-rt-users
- Page: https://ratatoskr.run/linux-rt-users/2016/03/4699400
- Thread: https://ratatoskr.run/linux-rt-users/2016/03/4699402/t.md

```text
3.14.61-rt64-rc1 stable review patch.
If anyone has any objections, please let me know.

------------------

From: Clark Williams <redacted>

RT has dropped support of rcu_bh, comment out in rcutorture.

Signed-off-by: Clark Williams <redacted>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Thomas Gleixner <redacted>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
---
 kernel/rcu/torture.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/kernel/rcu/torture.c b/kernel/rcu/torture.c
index 732f8ae3086a..042c8f1f0d30 100644
--- a/kernel/rcu/torture.c
+++ b/kernel/rcu/torture.c
@@ -477,6 +477,7 @@ static struct rcu_torture_ops rcu_ops = {
 	.name		= "rcu"
 };
 
+#ifndef CONFIG_PREEMPT_RT_FULL
 /*
  * Definitions for rcu_bh torture testing.
  */
@@ -519,6 +520,12 @@ static struct rcu_torture_ops rcu_bh_ops = {
 	.name		= "rcu_bh"
 };
 
+#else
+static struct rcu_torture_ops rcu_bh_ops = {
+	.ttype		= INVALID_RCU_FLAVOR,
+};
+#endif
+
 /*
  * Definitions for srcu torture testing.
  */
-- 
2.7.0
```
