Commit 208410b
committed
md/raid1/10: reset bio allocated from mempool
Data allocated from mempool doesn't always get initialized, this happens when
the data is reused instead of fresh allocation. In the raid1/10 case, we must
reinitialize the bios.
Reported-by: Jonathan G. Underwood <[email protected]>
Fixes: f025061(md: raid10: don't use bio's vec table to manage resync pages)
Fixes: 98d30c5(md: raid1: don't use bio's vec table to manage resync pages)
Cc: [email protected] (4.12+)
Cc: Ming Lei <[email protected]>
Signed-off-by: Shaohua Li <[email protected]>1 parent 9c72a18 commit 208410b
2 files changed
+50
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2564 | 2564 | | |
2565 | 2565 | | |
2566 | 2566 | | |
| 2567 | + | |
| 2568 | + | |
| 2569 | + | |
| 2570 | + | |
| 2571 | + | |
| 2572 | + | |
| 2573 | + | |
| 2574 | + | |
| 2575 | + | |
| 2576 | + | |
| 2577 | + | |
| 2578 | + | |
| 2579 | + | |
| 2580 | + | |
| 2581 | + | |
| 2582 | + | |
| 2583 | + | |
2567 | 2584 | | |
2568 | 2585 | | |
2569 | 2586 | | |
| |||
2649 | 2666 | | |
2650 | 2667 | | |
2651 | 2668 | | |
2652 | | - | |
| 2669 | + | |
2653 | 2670 | | |
2654 | 2671 | | |
2655 | 2672 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2798 | 2798 | | |
2799 | 2799 | | |
2800 | 2800 | | |
| 2801 | + | |
| 2802 | + | |
| 2803 | + | |
| 2804 | + | |
| 2805 | + | |
| 2806 | + | |
| 2807 | + | |
| 2808 | + | |
| 2809 | + | |
| 2810 | + | |
| 2811 | + | |
| 2812 | + | |
| 2813 | + | |
| 2814 | + | |
| 2815 | + | |
| 2816 | + | |
| 2817 | + | |
| 2818 | + | |
| 2819 | + | |
| 2820 | + | |
| 2821 | + | |
| 2822 | + | |
| 2823 | + | |
| 2824 | + | |
| 2825 | + | |
| 2826 | + | |
| 2827 | + | |
| 2828 | + | |
| 2829 | + | |
2801 | 2830 | | |
2802 | 2831 | | |
2803 | 2832 | | |
| |||
3027 | 3056 | | |
3028 | 3057 | | |
3029 | 3058 | | |
3030 | | - | |
| 3059 | + | |
3031 | 3060 | | |
3032 | 3061 | | |
3033 | 3062 | | |
| |||
3236 | 3265 | | |
3237 | 3266 | | |
3238 | 3267 | | |
3239 | | - | |
| 3268 | + | |
3240 | 3269 | | |
3241 | 3270 | | |
3242 | 3271 | | |
| |||
4360 | 4389 | | |
4361 | 4390 | | |
4362 | 4391 | | |
4363 | | - | |
| 4392 | + | |
4364 | 4393 | | |
4365 | 4394 | | |
4366 | 4395 | | |
| |||
0 commit comments