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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 24 Nov 2019 07:20:57 +0000 (08:20 +0100)
commit2a6c8fc0af645d0565be50dfb21860387ae04247
tree5dfd5588a7e7aaa71d46d6d580ade3d08887fe60
parent336793832f2669ca2ab9f33f0c2fe5ea15ff4137
orangefs: rate limit the client not running info message

[ 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 <colin.king@canonical.com>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/orangefs/orangefs-sysfs.c