]> git.baikalelectronics.ru Git - kernel.git/commitdiff
orangefs: rate limit the client not running info message
authorColin Ian King <colin.king@canonical.com>
Wed, 5 Sep 2018 14:54:01 +0000 (15:54 +0100)
committerMike Marshall <hubcap@omnibond.com>
Wed, 10 Oct 2018 13:54:29 +0000 (09:54 -0400)
Currently accessing various /sys/fs/orangefs files will spam the
kernel log with the following info message when the client is not
running:

[  491.489284] sysfs_service_op_show: Client not running :-5:

Rate limit this info message to make it less spammy.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
fs/orangefs/orangefs-sysfs.c

index dd28079f518c0c3d09865969e854fa07952286fe..19739aaee67554fff5bbac1e793cc6b803a017c3 100644 (file)
@@ -323,7 +323,7 @@ static ssize_t sysfs_service_op_show(struct kobject *kobj,
        /* Can't do a service_operation if the client is not running... */
        rc = is_daemon_in_service();
        if (rc) {
-               pr_info("%s: Client not running :%d:\n",
+               pr_info_ratelimited("%s: Client not running :%d:\n",
                        __func__,
                        is_daemon_in_service());
                goto out;