Whamcloud - gitweb
LU-1088 ldlm: dump certain amount of locks for ldlm resouce
authorLai Siyao <laisiyao@whamcloud.com>
Sun, 11 Mar 2012 08:19:56 +0000 (16:19 +0800)
committerOleg Drokin <green@whamcloud.com>
Tue, 22 May 2012 04:28:59 +0000 (00:28 -0400)
commitf3327caf5e33bd36509b66aab923ec9c649987f3
tree5b945cf613944d429e625107af1fef6a487dec44
parentfd2aabb91441ea3fb51b86203dbb00a8568f3e06
LU-1088 ldlm: dump certain amount of locks for ldlm resouce

* dump last 256 granted locks for ldlm resource to avoid DDOS.
* replace ldlm_lock_dump with ldlm_lock_debug, and print nid.

Signed-off-by: Lai Siyao <laisiyao@whamcloud.com>
Change-Id: I9b369978496397be44578e8aa07e2bc8c8bde4af
Reviewed-on: http://review.whamcloud.com/2250
Tested-by: Hudson
Reviewed-by: Jinshan Xiong <jinshan.xiong@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/lustre_dlm.h
lustre/ldlm/ldlm_lib.c
lustre/ldlm/ldlm_lock.c
lustre/ldlm/ldlm_lockd.c
lustre/ldlm/ldlm_request.c
lustre/ldlm/ldlm_resource.c