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 | VERBOSE_PRINTK_STRING("rcu_torture_writer task started"); | 523 | VERBOSE_PRINTK_STRING("rcu_torture_writer task started"); |
| 524 | set_user_nice(current, 19); | 524 | set_user_nice(current, 19); |
| 525 | current->flags |= PF_NOFREEZE; | ||
| 525 | 526 | ||
| 526 | do { | 527 | do { |
| 527 | schedule_timeout_uninterruptible(1); | 528 | schedule_timeout_uninterruptible(1); |
| @@ -561,6 +562,7 @@ rcu_torture_fakewriter(void *arg) · 33 unmodified lines | |||
| 561 | 562 | ||
| 562 | VERBOSE_PRINTK_STRING("rcu_torture_fakewriter task started"); | 563 | VERBOSE_PRINTK_STRING("rcu_torture_fakewriter task started"); |
| 563 | set_user_nice(current, 19); | 564 | set_user_nice(current, 19); |
| 565 | current->flags |= PF_NOFREEZE; | ||
| 564 | 566 | ||
| 565 | do { | 567 | do { |
| 566 | schedule_timeout_uninterruptible(1 + rcu_random(&rand)%10); | 568 | schedule_timeout_uninterruptible(1 + rcu_random(&rand)%10); |
| @@ -591,6 +593,7 @@ rcu_torture_reader(void *arg) · 24 unmodified lines | |||
| 591 | 593 | ||
| 592 | VERBOSE_PRINTK_STRING("rcu_torture_reader task started"); | 594 | VERBOSE_PRINTK_STRING("rcu_torture_reader task started"); |
| 593 | set_user_nice(current, 19); | 595 | set_user_nice(current, 19); |
| 596 | current->flags |= PF_NOFREEZE; | ||
| 594 | 597 | ||
| 595 | do { | 598 | do { |
| 596 | idx = cur_ops->readlock(); | 599 | idx = cur_ops->readlock(); |