Commit 5390473
committed
rcu: Don't penalize priority boosting when there is nothing to boost
RCU priority boosting cannot do anything unless there is at least one
task blocking the current RCU grace period that was preempted within
the RCU read-side critical section that it still resides in. However,
the current rcu_torture_boost_failed() code will count this as an RCU
priority-boosting failure if there were no CPUs blocking the current
grace period. This situation can happen (for example) if the last CPU
blocking the current grace period was subjected to vCPU preemption,
which is always a risk for rcutorture guest OSes.
This commit therefore causes rcu_torture_boost_failed() to refrain from
reporting failure unless there is at least one task blocking the current
RCU grace period that was preempted within the RCU read-side critical
section that it still resides in.
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>1 parent 7ab2bd3 commit 5390473
1 file changed
Lines changed: 14 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
723 | 723 | | |
724 | 724 | | |
725 | 725 | | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
726 | 730 | | |
727 | 731 | | |
728 | 732 | | |
729 | 733 | | |
730 | 734 | | |
731 | 735 | | |
732 | 736 | | |
| 737 | + | |
733 | 738 | | |
734 | 739 | | |
735 | 740 | | |
736 | 741 | | |
737 | 742 | | |
738 | 743 | | |
739 | | - | |
| 744 | + | |
740 | 745 | | |
741 | | - | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
742 | 749 | | |
| 750 | + | |
743 | 751 | | |
| 752 | + | |
744 | 753 | | |
| 754 | + | |
| 755 | + | |
745 | 756 | | |
746 | 757 | | |
747 | 758 | | |
| |||
758 | 769 | | |
759 | 770 | | |
760 | 771 | | |
761 | | - | |
| 772 | + | |
762 | 773 | | |
763 | 774 | | |
764 | 775 | | |
| |||
0 commit comments