Whamcloud - gitweb
LU-930 misc: limit CDEBUG console message frequency
authorAndreas Dilger <adilger@whamcloud.com>
Sat, 7 Nov 2020 07:53:28 +0000 (00:53 -0700)
committerLi Xi <lixi@ddn.com>
Tue, 18 May 2021 01:44:37 +0000 (01:44 +0000)
commit9eda2c1c4693b7359f683e23f89b3d3fb480d787
tree23906d8b3a75102dc03bc89945d879fba01eb256
parent640b334a96a909ce141bae1625f496eecbe427fa
LU-930 misc: limit CDEBUG console message frequency

Some CDEBUG() messages have variable message levels, but if printed
to the console it is not rate limited like CWARN() and CERROR():

 server_bulk_callback()) event type 5, status -110
 server_bulk_callback()) event type 5, status -110
 server_bulk_callback()) event type 5, status -110
 :

Instead, use CDEBUG_LIMIT() for those messages to limit them.

Lustre-change: https://review.whamcloud.com/40571
Lustre-commit: 7462e8cad730897f459da31886c57585654f26b8

Test-Parameters: trivial
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I9081398c7d014b2873e764dc283ce2f4623ebbe5
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-by: Wang Shilong <wshilong@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-on: https://review.whamcloud.com/43400
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/llite/file.c
lustre/lod/lod_object.c
lustre/lov/lov_obd.c
lustre/mdt/mdt_handler.c
lustre/ptlrpc/client.c
lustre/ptlrpc/events.c
lustre/ptlrpc/import.c