Make rcutorture check for CPU-hotplug failures and complain if there were any.
Showing the changes to kernel (1 of 1 file). Show all
Unified · Split
| @@ -1602,6 +1602,10 @@ rcu_torture_cleanup(void) · 1601 unmodified lines | ||
| 1602 | 1602 | cur_ops->cleanup(); |
| 1603 | 1603 | if (atomic_read(&n_rcu_torture_error)) |
| 1604 | 1604 | rcu_torture_print_module_parms(cur_ops, "End of test: FAILURE"); |
| 1605 | + else if (n_online_successes != n_online_attempts || | |
| 1606 | + n_offline_successes != n_offline_attempts) | |
| 1607 | + rcu_torture_print_module_parms(cur_ops, | |
| 1608 | + "End of test: RCU_HOTPLUG"); | |
| 1605 | 1609 | else |
| 1606 | 1610 | rcu_torture_print_module_parms(cur_ops, "End of test: SUCCESS"); |
| 1607 | 1611 | } |