Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2118181imm; Fri, 7 Sep 2018 11:03:55 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYn5P8QW8hrg9qGrQFHa26BH+9arhuvjuIIBEcYYW50zGh2iP2jJX7r8ciiti4Uv3Q+BJMr X-Received: by 2002:a62:d113:: with SMTP id z19-v6mr9789090pfg.98.1536343435704; Fri, 07 Sep 2018 11:03:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536343435; cv=none; d=google.com; s=arc-20160816; b=yH2N1HcE+3/SsD9Kt547QsWeqxA/L0cNFVAEt1BWnotny37RoW6IN/TCDNYWf+Whms bqSQJdWwW8EwW0vBRXnwHpy4ULyuiodsgtizRlAVqYOPbMWH0p+XaFGGGWdWKCtHRpDQ gRPkanTNyqcboRECMJvYu9nwVEQH/3Vse5w8tkXJjKYcra8gfRnEtnr3lRCi1wJ70NmH dn2Nlg4N6XARuMzbFZYJ4epcMKKkBYoQzYFz5y3Wdg3cb1db0rG05toH6fOXuFI3LQFV gVB/CWsxjCEoELkD9TO/EVac/0o+WXz6QiC5+oIOK16OQbZUU3UGE7XGXxG7nY4M3/wy BzkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Mi2ctbxXWmOUuQPHCVmVfMnMu3gq2QCj6jYt8Ttr3xU=; b=FB8XOYIUmroxXYJq0lJIdZiI9Cn9bIQ5IUuQvdoXHmN1a0q82TWyCPdRIqbqWRqAPG bHEs4mKQXLsyYjnIn+sshhmvofl0kOQBqT65cfJVs2mS8Cc2HwyiFqZo9imUaxO/FSO9 /RJVVpH0R5FA1hTi+jJQ5aYLctxzZqc2xD0ZsKEuXz0utx+A5e6m6bsXgu3m2+bzVgrr tIToGGh//4qzukV/smpj0zVt+BnrzTyXbsBS3yT+4E4pNmpnxFJMgxGyZasA9KkbCZzv c2uBuB4QTTQPh3nU26KWBOXuvTHcwdxO0p8DjHmW8yN0k2s6VOxRqwYy6Vhs/vz5srRP XzPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@omnibond-com.20150623.gappssmtp.com header.s=20150623 header.b=sPX96o6h; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f2-v6si8153879plo.206.2018.09.07.11.03.39; Fri, 07 Sep 2018 11:03:55 -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; dkim=pass header.i=@omnibond-com.20150623.gappssmtp.com header.s=20150623 header.b=sPX96o6h; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727625AbeIGWoF (ORCPT + 99 others); Fri, 7 Sep 2018 18:44:05 -0400 Received: from mail-yb1-f195.google.com ([209.85.219.195]:42386 "EHLO mail-yb1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727261AbeIGWoF (ORCPT ); Fri, 7 Sep 2018 18:44:05 -0400 Received: by mail-yb1-f195.google.com with SMTP id j8-v6so5749216ybg.9 for ; Fri, 07 Sep 2018 11:02:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=omnibond-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Mi2ctbxXWmOUuQPHCVmVfMnMu3gq2QCj6jYt8Ttr3xU=; b=sPX96o6hl1DdKplFd9EtMbCZOUNAAky/W+PiHaQuJN+hS1Jnau6DlSJ9wMRD3d/ME3 WlgRxwpLkOwccmprNwOoVh1I7J8pHAsKVBA/a/qFF/1Hk9V2Q3AY7vqn770tpy5xt+xq CLfvPV74TQUbvXi8E5M02odKPf8gIq67yNtDx2XBLKxAuCTIu0Kx9UQ/+SmxeUPNfPDz Q+ixxnDnlbxbpWklpUq1C/GSTRKEkfgAotl4+jCzNyjbrAdFJK9cV3oeTV3GlSnNp7is u7AMUZpb51p0mnOVhYWX574UtL5Vaed6bTRArHpYYjchPibsEOHAe5HDhi2h5fOKoH4V bfmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Mi2ctbxXWmOUuQPHCVmVfMnMu3gq2QCj6jYt8Ttr3xU=; b=iHbbf9BAKamVY0qMKvmUvIqoPXO72nTD3uEkh1Gc6be5c7uuN1PHHk7QjYlc8CXiAn XaxaNBx8AtusCwyjbGQrQHc9Fun4AxakJbPKmIX+C8nRf2dS0kg82FHOiE/iwWsBm5oZ VIXM03fr2PgnS+Shs3idMSvDND7rapz4GBZfat6FZG342OB25WrTSBHuORPKlCPnpPHT SOqfwfDO9y41rqY1YGs8X7P4CCwgD6OtQkveWfy79RqYrBRa3zvdYryk0+BJQ4Dbf9DL FrOt1gWc4zoIm4xUawH1ggaD3yB+fPY5b1RGq+/mkDzB6OQkBGkBSMYoLZEFoq1zypJi 0tpA== X-Gm-Message-State: APzg51CqOd1lDrJHlfGKyMr9ymh7bP9YRHuGwo3Zk4XIdKVED2pfGeQU rl0InQ1oLpn9q4F0b9aChC5SC4+IFUaZndUZqMdy2SAIhKQ= X-Received: by 2002:a25:9186:: with SMTP id w6-v6mr4540992ybl.316.1536343319883; Fri, 07 Sep 2018 11:01:59 -0700 (PDT) MIME-Version: 1.0 References: <20180905145401.19772-1-colin.king@canonical.com> In-Reply-To: <20180905145401.19772-1-colin.king@canonical.com> From: Mike Marshall Date: Fri, 7 Sep 2018 14:01:48 -0400 Message-ID: Subject: Re: [PATCH] orangefs: rate limit the client not running info message To: colin.king@canonical.com Cc: Martin Brandenburg , devel@lists.orangefs.org, kernel-janitors@vger.kernel.org, LKML , Mike Marshall Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thanks... I've applied your patch to 4.19-rc2 and run it through xfstests. It is in my linux-next tree now. I put that in there because I'm really just an old system administrator, and I would always be happy when I could tail dmesg and see some hint at why something wasn't doing as I expected. I just looked in ratelimit.h and at the ratelimit macros in printk.h, I should try to think about those more when adding sysadmin-alert messages. -Mike On Wed, Sep 5, 2018 at 10:54 AM Colin King wrote: > > 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 >