]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
md/raid5-cache: stripe reclaim only counts valid stripes
authorShaohua Li <shli@fb.com>
Sat, 11 Feb 2017 00:18:08 +0000 (16:18 -0800)
committerShaohua Li <shli@fb.com>
Mon, 13 Feb 2017 17:20:02 +0000 (09:20 -0800)
commite8fd52eec2cd25b917983b3f3aa738b722522376
treed47554c2afa2ee5bb8e4bce797779c7c5c4eff7e
parent5a6265f9cd98b82d89778b806bc50b3d368c8273
md/raid5-cache: stripe reclaim only counts valid stripes

When log space is tight, we try to reclaim stripes from log head. There
are stripes which can't be reclaimed right now if some conditions are
met. We skip such stripes but accidentally count them, which might cause
no stripes are claimed. Fixing this by only counting valid stripes.

Cc: Song Liu <songliubraving@fb.com>
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/raid5-cache.c