Whamcloud - gitweb
LU-13600 ptlrpc: limit rate of lock replays 20/38920/3
authorMikhail Pershin <mpershin@whamcloud.com>
Fri, 12 Jun 2020 14:14:50 +0000 (17:14 +0300)
committerOleg Drokin <green@whamcloud.com>
Fri, 19 Jun 2020 16:50:10 +0000 (16:50 +0000)
commit3b613a442b8698596096b23ce82e157c158a5874
treee3fad0a00da261b2bf190c024c16dd94eaa400ca
parentca09fda138b6d72588f40e4cf79c5f2de832d2dd
LU-13600 ptlrpc: limit rate of lock replays

Clients send all lock replays at once and that may overwhelm
server with huge amount of replays in recovery queue causing
OOM effects.

Patch adds rate control for lock replays on client

Signed-off-by: Mikhail Pershin <mpershin@whamcloud.com>
Change-Id: Ie557f8481c5facb690468d7136cf5feebe4e8f11
Reviewed-on: https://review.whamcloud.com/38920
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Hongchao Zhang <hongchao@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/lustre_import.h
lustre/ldlm/ldlm_request.c
lustre/obdclass/genops.c
lustre/ptlrpc/import.c