Commit 57f6020
committed
rcutorture: Properly synchronize with OOM notifier
The current rcutorture forward-progress code assumes that it is the
only cause of out-of-memory (OOM) events. For script-based rcutorture
testing, this assumption is in fact correct. However, testing based
on modprobe/rmmod might well encounter external OOM events, which could
happen at any time.
This commit therefore properly synchronizes the interaction between
rcutorture's forward-progress testing and its OOM notifier by adding a
global mutex.
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>1 parent c8fa637 commit 57f6020
1 file changed
Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1796 | 1796 | | |
1797 | 1797 | | |
1798 | 1798 | | |
| 1799 | + | |
1799 | 1800 | | |
1800 | 1801 | | |
1801 | 1802 | | |
| |||
2062 | 2063 | | |
2063 | 2064 | | |
2064 | 2065 | | |
2065 | | - | |
| 2066 | + | |
2066 | 2067 | | |
| 2068 | + | |
| 2069 | + | |
| 2070 | + | |
| 2071 | + | |
| 2072 | + | |
| 2073 | + | |
2067 | 2074 | | |
2068 | 2075 | | |
2069 | 2076 | | |
| |||
2081 | 2088 | | |
2082 | 2089 | | |
2083 | 2090 | | |
| 2091 | + | |
2084 | 2092 | | |
2085 | 2093 | | |
2086 | 2094 | | |
| |||
2148 | 2156 | | |
2149 | 2157 | | |
2150 | 2158 | | |
| 2159 | + | |
2151 | 2160 | | |
| 2161 | + | |
2152 | 2162 | | |
2153 | 2163 | | |
2154 | 2164 | | |
| |||
2158 | 2168 | | |
2159 | 2169 | | |
2160 | 2170 | | |
| 2171 | + | |
2161 | 2172 | | |
| 2173 | + | |
2162 | 2174 | | |
2163 | 2175 | | |
2164 | 2176 | | |
| |||
0 commit comments