From: Paul E. McKenney Remove PF_NOFREEZE from the rcutorture thread, adding a try_to_freeze() call as required. Signed-off-by: Paul E. McKenney Signed-off-by: Rafael J. Wysocki Acked-by: Pavel Machek Cc: Oleg Nesterov Cc: Aneesh Kumar Cc: Srivatsa Vaddagiri Cc: Gautham R Shenoy Signed-off-by: Andrew Morton --- kernel/rcutorture.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletion(-) diff -puN kernel/rcutorture.c~freezer-remove-pf_nofreeze-from-rcutorture-thread kernel/rcutorture.c --- a/kernel/rcutorture.c~freezer-remove-pf_nofreeze-from-rcutorture-thread +++ a/kernel/rcutorture.c @@ -46,6 +46,7 @@ #include #include #include +#include MODULE_LICENSE("GPL"); MODULE_AUTHOR("Paul E. McKenney and " @@ -589,7 +590,6 @@ rcu_torture_writer(void *arg) VERBOSE_PRINTK_STRING("rcu_torture_writer task started"); set_user_nice(current, 19); - current->flags |= PF_NOFREEZE; do { schedule_timeout_uninterruptible(1); @@ -611,6 +611,7 @@ rcu_torture_writer(void *arg) } rcu_torture_current_version++; oldbatch = cur_ops->completed(); + try_to_freeze(); } while (!kthread_should_stop() && !fullstop); VERBOSE_PRINTK_STRING("rcu_torture_writer task stopping"); while (!kthread_should_stop()) _