Fix suspend hang: rcutorture threads need to be nofreeze.
Unified · Split
| @@ -522,6 +522,7 @@ rcu_torture_writer(void *arg) · 521 unmodified lines | ||
| 522 | 522 | |
| 523 | 523 | VERBOSE_PRINTK_STRING("rcu_torture_writer task started"); |
| 524 | 524 | set_user_nice(current, 19); |
| 525 | + current->flags |= PF_NOFREEZE; | |
| 525 | 526 | |
| 526 | 527 | do { |
| 527 | 528 | schedule_timeout_uninterruptible(1); |
| @@ -561,6 +562,7 @@ rcu_torture_fakewriter(void *arg) · 33 unmodified lines | ||
| 561 | 562 | |
| 562 | 563 | VERBOSE_PRINTK_STRING("rcu_torture_fakewriter task started"); |
| 563 | 564 | set_user_nice(current, 19); |
| 565 | + current->flags |= PF_NOFREEZE; | |
| 564 | 566 | |
| 565 | 567 | do { |
| 566 | 568 | schedule_timeout_uninterruptible(1 + rcu_random(&rand)%10); |
| @@ -591,6 +593,7 @@ rcu_torture_reader(void *arg) · 24 unmodified lines | ||
| 591 | 593 | |
| 592 | 594 | VERBOSE_PRINTK_STRING("rcu_torture_reader task started"); |
| 593 | 595 | set_user_nice(current, 19); |
| 596 | + current->flags |= PF_NOFREEZE; | |
| 594 | 597 | |
| 595 | 598 | do { |
| 596 | 599 | idx = cur_ops->readlock(); |