From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DAEE4C432C0 for ; Fri, 22 Nov 2019 11:08:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A65FD2085B for ; Fri, 22 Nov 2019 11:08:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574420883; bh=+E19Huy+AE+P6Kn7PRtmtBXtIXdaMq31874qfiMh7I0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=lOa7xkKBqB8eGnx1P8+M6q4fWEfE6hh+pL6xdUQsPaAMD4aculYdYeigAbcaYXdUE pst0b1vey5FRpJI3DkR9JEcXYaEeI5hvuS0w+O5pcLHJE/4eE6Wf7cxJ+otGtqu1Mn SBQz16Q2thHAodF6SYluHoU5cn74/qBJYiPp5GpE= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731285AbfKVLFC (ORCPT ); Fri, 22 Nov 2019 06:05:02 -0500 Received: from mail.kernel.org ([198.145.29.99]:60424 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731108AbfKVLFA (ORCPT ); Fri, 22 Nov 2019 06:05:00 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5B04020872; Fri, 22 Nov 2019 11:04:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574420699; bh=+E19Huy+AE+P6Kn7PRtmtBXtIXdaMq31874qfiMh7I0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=z//osKfau5zUaHXRnO7oplzokJpFDlxI4RQqyAHZEz99JsXRg2IZLOu9DCEcb02pU UDdjZjPqyk+Kn0he8qk3teTIbCTG3gDNds92snd3+9QQxB+UiAkPOOGVW9mSpVtvhe WM/S2TcGmyHygFmiJ6Qq+T7dM+rvp+mnc3DzoSVk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Colin Ian King , Mike Marshall , Sasha Levin Subject: [PATCH 4.19 196/220] orangefs: rate limit the client not running info message Date: Fri, 22 Nov 2019 11:29:21 +0100 Message-Id: <20191122100928.101895038@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191122100912.732983531@linuxfoundation.org> References: <20191122100912.732983531@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Colin Ian King [ Upstream commit 2978d873471005577e7b68a528b4f256a529b030 ] 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 Signed-off-by: Mike Marshall Signed-off-by: Sasha Levin --- 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 dd28079f518c0..19739aaee6755 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.20.1