Commit c069da4
md/raid1: hold the barrier until handle_read_error() finishes
handle_read_error() will call allow_barrier() to match the former barrier
raising. However, it should put the allow_barrier() at the end to avoid a
concurrent raid reshape.
Fixes: 689389a ("md/raid1: simplify handle_read_error().")
Reviewed-by: Yu Kuai <yukuai3@huawei.com>
Signed-off-by: Xueshi Hu <xueshi.hu@smartx.com>
Link: https://lore.kernel.org/r/20230814135356.1113639-4-xueshi.hu@smartx.com
Signed-off-by: Song Liu <song@kernel.org>1 parent 992db13 commit c069da4
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2511 | 2511 | | |
2512 | 2512 | | |
2513 | 2513 | | |
| 2514 | + | |
2514 | 2515 | | |
2515 | 2516 | | |
2516 | 2517 | | |
| |||
2540 | 2541 | | |
2541 | 2542 | | |
2542 | 2543 | | |
2543 | | - | |
| 2544 | + | |
2544 | 2545 | | |
2545 | 2546 | | |
2546 | 2547 | | |
2547 | 2548 | | |
2548 | 2549 | | |
| 2550 | + | |
2549 | 2551 | | |
2550 | 2552 | | |
2551 | 2553 | | |
| |||
0 commit comments