aboutsummaryrefslogtreecommitdiffstats
path: root/lib/xarray.c
diff options
context:
space:
mode:
authorAlexei Naberezhnov <[email protected]>2018-03-27 23:54:16 +0000
committerSong Liu <[email protected]>2019-01-28 19:44:40 +0000
commit483cbbeddd5fe2c80fd4141ff0748fa06c4ff146 (patch)
tree3ebb98292523a656d752359fff20b39978d7e31d /lib/xarray.c
parentLinux 5.0-rc4 (diff)
downloadkernel-483cbbeddd5fe2c80fd4141ff0748fa06c4ff146.tar.gz
kernel-483cbbeddd5fe2c80fd4141ff0748fa06c4ff146.zip
md/raid5: fix 'out of memory' during raid cache recovery
This fixes the case when md array assembly fails because of raid cache recovery unable to allocate a stripe, despite attempts to replay stripes and increase cache size. This happens because stripes released by r5c_recovery_replay_stripes and raid5_set_cache_size don't become available for allocation immediately. Released stripes first are placed on conf->released_stripes list and require md thread to merge them on conf->inactive_list before they can be allocated. Patch allows final allocation attempt during cache recovery to wait for new stripes to become availabe for allocation. Cc: [email protected] Cc: Shaohua Li <[email protected]> Cc: linux-stable <[email protected]> # 4.10+ Fixes: b4c625c67362 ("md/r5cache: r5cache recovery: part 1") Signed-off-by: Alexei Naberezhnov <[email protected]> Signed-off-by: Song Liu <[email protected]>
Diffstat (limited to 'lib/xarray.c')
0 files changed, 0 insertions, 0 deletions