Skip to content

Commit

Permalink
[PATCH] rcu: rcutorture suspend fix
Browse files Browse the repository at this point in the history
Fix suspend hang: rcutorture threads need to be nofreeze.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Ingo Molnar authored and Linus Torvalds committed Dec 30, 2006
1 parent 52e88f5 commit e4e6bdb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kernel/rcutorture.c
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,7 @@ 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);
Expand Down Expand Up @@ -561,6 +562,7 @@ rcu_torture_fakewriter(void *arg)

VERBOSE_PRINTK_STRING("rcu_torture_fakewriter task started");
set_user_nice(current, 19);
current->flags |= PF_NOFREEZE;

do {
schedule_timeout_uninterruptible(1 + rcu_random(&rand)%10);
Expand Down Expand Up @@ -591,6 +593,7 @@ rcu_torture_reader(void *arg)

VERBOSE_PRINTK_STRING("rcu_torture_reader task started");
set_user_nice(current, 19);
current->flags |= PF_NOFREEZE;

do {
idx = cur_ops->readlock();
Expand Down

0 comments on commit e4e6bdb

Please sign in to comment.