History

[PATCH] rcu: rcutorture suspend fix

Fix suspend hang: rcutorture threads need to be nofreeze.

Ingo Molnar committed 19 years ago

Commit e4e6bdb1 parent 52e88f51 file · +3 −0Browse files

Showing the changes to kernel (1 of 1 file). Show all

Unified · Split

kernel/rcutorture.c+3−0
@@ -522,6 +522,7 @@ rcu_torture_writer(void *arg) · 521 unmodified lines
522522
523523 VERBOSE_PRINTK_STRING("rcu_torture_writer task started");
524524 set_user_nice(current, 19);
525+ current->flags |= PF_NOFREEZE;
525526
526527 do {
527528 schedule_timeout_uninterruptible(1);
@@ -561,6 +562,7 @@ rcu_torture_fakewriter(void *arg) · 33 unmodified lines
561562
562563 VERBOSE_PRINTK_STRING("rcu_torture_fakewriter task started");
563564 set_user_nice(current, 19);
565+ current->flags |= PF_NOFREEZE;
564566
565567 do {
566568 schedule_timeout_uninterruptible(1 + rcu_random(&rand)%10);
@@ -591,6 +593,7 @@ rcu_torture_reader(void *arg) · 24 unmodified lines
591593
592594 VERBOSE_PRINTK_STRING("rcu_torture_reader task started");
593595 set_user_nice(current, 19);
596+ current->flags |= PF_NOFREEZE;
594597
595598 do {
596599 idx = cur_ops->readlock();