Commit de0e062
committed
RAS/CEC: Check count_threshold unconditionally
The count_threshold should be checked unconditionally, after insertion
too, so that a count_threshold value of 1 can cause an immediate
offlining. I.e., offline the page on the *first* error encountered.
Add comments to make it clear what cec_add_elem() does, while at it.
Reported-by: WANG Chao <chao.wang@ucloud.cn>
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: Tony Luck <tony.luck@intel.com>
Cc: linux-edac@vger.kernel.org
Link: https://lkml.kernel.org/r/20190418034115.75954-3-chao.wang@ucloud.cn1 parent 6d8e294 commit de0e062
1 file changed
+10
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
294 | 294 | | |
295 | 295 | | |
296 | 296 | | |
| 297 | + | |
297 | 298 | | |
298 | 299 | | |
299 | 300 | | |
| |||
306 | 307 | | |
307 | 308 | | |
308 | 309 | | |
309 | | - | |
310 | | - | |
311 | | - | |
| 310 | + | |
312 | 311 | | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | | - | |
317 | 312 | | |
318 | 313 | | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
324 | 317 | | |
325 | | - | |
326 | | - | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
327 | 321 | | |
328 | 322 | | |
329 | 323 | | |
| |||
338 | 332 | | |
339 | 333 | | |
340 | 334 | | |
341 | | - | |
342 | | - | |
| 335 | + | |
| 336 | + | |
343 | 337 | | |
344 | 338 | | |
345 | 339 | | |
346 | 340 | | |
347 | 341 | | |
348 | 342 | | |
349 | | - | |
350 | 343 | | |
351 | 344 | | |
352 | 345 | | |
| |||
0 commit comments