Repository navigation
Commit c9020e6
committed
md/raid5-cache: clear MD_SB_CHANGE_PENDING before flushing stripes
In recovery, if we process too much data, raid5-cache may set
MD_SB_CHANGE_PENDING, which causes spinning in handle_stripe().
Fix this issue by clearing the bit before flushing data only
stripes. This issue was initially discussed in [1].
[1] https://www.spinics.net/lists/raid/msg64409.html
Signed-off-by: Song Liu <songliubraving@fb.com>1 parent e1a86db commit c9020e6
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2430 | 2430 | | |
2431 | 2431 | | |
2432 | 2432 | | |
| 2433 | + | |
2433 | 2434 | | |
2434 | 2435 | | |
2435 | 2436 | | |
2436 | 2437 | | |
| 2438 | + | |
| 2439 | + | |
| 2440 | + | |
| 2441 | + | |
2437 | 2442 | | |
2438 | 2443 | | |
2439 | 2444 | | |
| |||
2448 | 2453 | | |
2449 | 2454 | | |
2450 | 2455 | | |
| 2456 | + | |
| 2457 | + | |
2451 | 2458 | | |
2452 | 2459 | | |
2453 | 2460 | | |
| |||
0 commit comments