Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3912055imm; Wed, 5 Sep 2018 07:55:28 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYmwiVmdRobzgUUpoXImHlKeH3VC5tdjNHRdvCTF1gVMagVviREboBieQrQQRGOOZeDcez1 X-Received: by 2002:a17:902:9a01:: with SMTP id v1-v6mr39088279plp.20.1536159328181; Wed, 05 Sep 2018 07:55:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536159328; cv=none; d=google.com; s=arc-20160816; b=YPC961aeiSO2edQ9lsQP0JgQx0u6G+9PJ39wjjHeR0CRvXrk+skOW5hJOVJj3pX9Ex EHw4aYYXXq2eFxnUbjq2DJOWvkIfhpGKBqWm8EZ7O59lrTDLYv1Yu2ONLk7P5HJqUHR2 veI9u4Rn4/AmX0Zp6rgCZI7yBnhIexziT5J4D2Pv5G/b2ebiBGUpRMG7x+VYFbUoJWim pttMl0PBeClD74Ncb60Y8s4rsLHuBlN6UAO4Ou+a+5jSwzTazWNBujTeC89Zz6GVt28M 2JL2L/emF6zbEUtc8CPiwU4TDXaB1bwYatBp2jnxJi6f7TGgitTZ6bPl2a2O3A//nTEP /WEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=5fA0vvBeGqCOxtA8g1lYqLt24m4qE3QhwJJZuRfxdrk=; b=vVmCI22uPoiyUt9zyYikTKx9Np+LB5AHlZsYf+YzSTfkUscv+pz8EY7vo1os7slALh wCV3R5qyi5qH9wE9T9AfsWK+Yj87xKo5lRLWPBnggbuNB4AF8GqVTMrJ8vX70SO6e/XD R9dRBzDfgA35J42+xRDBb5vf+72M+ujTgyC8whZjbCrKb8kZwZtpAToiksq+fmU+7jq3 cNrHJVCkOtkB2bXvzKyH0qWSawpydSQ32LqTs5Uim2eVGzecs5Yei02m9xWBdt/GHVjw sl0Hq6iAqWvPb/OrWxS4WlNfJRm9IdY3pzMY7AZrYPdlrI/1N/vhgjRIq0DN36Au+enL r9Ng== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k91-v6si2101910pld.187.2018.09.05.07.55.12; Wed, 05 Sep 2018 07:55:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727665AbeIETYg (ORCPT + 99 others); Wed, 5 Sep 2018 15:24:36 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:57877 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726335AbeIETYg (ORCPT ); Wed, 5 Sep 2018 15:24:36 -0400 Received: from 1.general.cking.uk.vpn ([10.172.193.212] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1fxZBx-0007S4-IU; Wed, 05 Sep 2018 14:54:01 +0000 From: Colin King To: Mike Marshall , Martin Brandenburg , devel@lists.orangefs.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] orangefs: rate limit the client not running info message Date: Wed, 5 Sep 2018 15:54:01 +0100 Message-Id: <20180905145401.19772-1-colin.king@canonical.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Colin Ian King 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 --- fs/orangefs/orangefs-sysfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/orangefs/orangefs-sysfs.c b/fs/orangefs/orangefs-sysfs.c index dd28079f518c..19739aaee675 100644 --- a/fs/orangefs/orangefs-sysfs.c +++ b/fs/orangefs/orangefs-sysfs.c @@ -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; -- 2.17.1