]> git.baikalelectronics.ru Git - kernel.git/commit
md/r5cache: run_no_space_stripes() when R5C_LOG_CRITICAL == 0
authorSong Liu <songliubraving@fb.com>
Thu, 1 Dec 2016 00:57:54 +0000 (16:57 -0800)
committerShaohua Li <shli@fb.com>
Fri, 2 Dec 2016 20:03:52 +0000 (12:03 -0800)
commitd7c1bc8f9a9c84c7647a7c92198293f17906fcab
treed99bd62ff9389999b1e380087db5534b89e46f46
parentb49255d5c7ece9fdb7c0e3e3bd039c0f5c31e269
md/r5cache: run_no_space_stripes() when R5C_LOG_CRITICAL == 0

With writeback cache, we define log space critical as

   free_space < 2 * reclaim_required_space

So the deassert of R5C_LOG_CRITICAL could happen when
  1. free_space increases
  2. reclaim_required_space decreases

Currently, run_no_space_stripes() is called when 1 happens, but
not (always) when 2 happens.

With this patch, run_no_space_stripes() is call when
R5C_LOG_CRITICAL is cleared.

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