Facing below warning message in 5.14 kernel module while taking rcu_read_lock()/unlock(), but the same code is working in 3.14 kernel.
[ +0.000004] Voluntary context switch within RCU read-side critical section!
[ +0.000005] WARNING: CPU: 3 PID: 93953 at kernel/rcu/tree_plugin.h:318 rcu_note_context_switch+0x24d/0x270
Based on my analysis, found a difference that CONFIG_PREEMPT_RCU=Y is enabled in 5.14 kernel but not in 3.14 kernel. Moreover, current RCU implementation suits to classical RCU which may not require preemption. So planned to disable CONFIG_PREEMPT_RCU=n to make my code work.
But, I don't find the option to disable in make menuconfig. Could some one help me , how to disable the CONFIG_PREEMPT_RCU=n in 5.14 kernel.