Whamcloud - gitweb
ORNL-27: Cancel on completion lock on the MGS
authorJinshan Xiong <jay@whamcloud.com>
Thu, 6 Oct 2011 20:35:02 +0000 (13:35 -0700)
committerOleg Drokin <green@whamcloud.com>
Fri, 21 Oct 2011 17:05:59 +0000 (13:05 -0400)
commiteb062ffc1cce793e24dd85f30011a18037b6e609
tree13bd94419df1368c3314047fb9c1c112e56b3971
parenta37738fcbd79e283c687a630d9ccb7d7a9fedb3e
ORNL-27: Cancel on completion lock on the MGS

We should cancel the recover/config LCK_EX lock immediately
when they are granted to accelerate enqueue process.

Also, it doesn't make sense to add mgc recover/config lock into
LRU list because these kinds of lock would never be canceled
voluntarily. Restore LDLM_FL_NO_LRU flag and apply it for mgc
lock.

Signed-off-by: Jinshan Xiong <jay@whamcloud.com>
Change-Id: I369b57ca4780b0bfa07d33b4423b468481263ade
Reviewed-on: http://review.whamcloud.com/1261
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/lustre_dlm.h
lustre/ldlm/ldlm_internal.h
lustre/ldlm/ldlm_lock.c
lustre/ldlm/ldlm_request.c
lustre/mgc/mgc_request.c
lustre/mgs/mgs_handler.c
lustre/mgs/mgs_internal.h
lustre/mgs/mgs_llog.c
lustre/mgs/mgs_nids.c