]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
md/r5cache: print more info of log recovery
authorSong Liu <songliubraving@fb.com>
Tue, 19 Dec 2017 19:43:07 +0000 (11:43 -0800)
committerShaohua Li <shli@fb.com>
Wed, 20 Dec 2017 16:39:26 +0000 (08:39 -0800)
Log recovery is critical for raid5 journal/cache. Printing information
about each recovery by default will help the system admin monitor the
status of the array.

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

index f259a5fd3fbdadfc3fe39873c4195cde555cbb0b..8b8f9db05e916a8c7512b62dcf1bb529277293fb 100644 (file)
@@ -2490,10 +2490,10 @@ static int r5l_recovery_log(struct r5l_log *log)
        ctx->seq += 10000;
 
        if ((ctx->data_only_stripes == 0) && (ctx->data_parity_stripes == 0))
-               pr_debug("md/raid:%s: starting from clean shutdown\n",
+               pr_info("md/raid:%s: starting from clean shutdown\n",
                         mdname(mddev));
        else
-               pr_debug("md/raid:%s: recovering %d data-only stripes and %d data-parity stripes\n",
+               pr_info("md/raid:%s: recovering %d data-only stripes and %d data-parity stripes\n",
                         mdname(mddev), ctx->data_only_stripes,
                         ctx->data_parity_stripes);