Commit 699dd28
committed
osd/scrub: fix job requeue conditions
Previous commits handled the following two cases correctly:
- requeueing a scrub job while the OSD is still the primary, and
- not restoring the scrub job to the queue if the PG is not there;
Here we handle the missed scenario: the PG is there (we were able to
lock it), but is no longer the primary.
Also - a configuration change must not cause a re-queue of a
scrub-job for a PG that is in the middle of scrubbing.
Signed-off-by: Ronen Friedman <[email protected]>1 parent 2187c49 commit 699dd28
2 files changed
+34
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1363 | 1363 | | |
1364 | 1364 | | |
1365 | 1365 | | |
1366 | | - | |
| 1366 | + | |
1367 | 1367 | | |
1368 | 1368 | | |
1369 | 1369 | | |
| |||
1372 | 1372 | | |
1373 | 1373 | | |
1374 | 1374 | | |
1375 | | - | |
| 1375 | + | |
| 1376 | + | |
| 1377 | + | |
| 1378 | + | |
1376 | 1379 | | |
1377 | 1380 | | |
1378 | 1381 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2093 | 2093 | | |
2094 | 2094 | | |
2095 | 2095 | | |
| 2096 | + | |
| 2097 | + | |
| 2098 | + | |
| 2099 | + | |
| 2100 | + | |
| 2101 | + | |
| 2102 | + | |
| 2103 | + | |
| 2104 | + | |
2096 | 2105 | | |
2097 | 2106 | | |
2098 | 2107 | | |
| |||
2113 | 2122 | | |
2114 | 2123 | | |
2115 | 2124 | | |
2116 | | - | |
2117 | 2125 | | |
2118 | 2126 | | |
2119 | 2127 | | |
| |||
2122 | 2130 | | |
2123 | 2131 | | |
2124 | 2132 | | |
| 2133 | + | |
| 2134 | + | |
| 2135 | + | |
| 2136 | + | |
| 2137 | + | |
| 2138 | + | |
| 2139 | + | |
| 2140 | + | |
2125 | 2141 | | |
2126 | 2142 | | |
2127 | | - | |
2128 | 2143 | | |
2129 | 2144 | | |
2130 | 2145 | | |
| |||
2148 | 2163 | | |
2149 | 2164 | | |
2150 | 2165 | | |
| 2166 | + | |
| 2167 | + | |
| 2168 | + | |
| 2169 | + | |
| 2170 | + | |
| 2171 | + | |
| 2172 | + | |
| 2173 | + | |
2151 | 2174 | | |
2152 | | - | |
2153 | | - | |
| 2175 | + | |
| 2176 | + | |
| 2177 | + | |
| 2178 | + | |
2154 | 2179 | | |
2155 | 2180 | | |
2156 | 2181 | | |
| |||
0 commit comments