Whamcloud - gitweb
LU-4788 lfsck: take ldlm lock before modifying visible object 86/10986/11
authorFan Yong <fan.yong@intel.com>
Sun, 13 Jul 2014 12:14:10 +0000 (20:14 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 5 Sep 2014 00:24:17 +0000 (00:24 +0000)
commit53380e03668325423d6ffb80f3a955ad3a16d21a
tree0d2fb3a589f29222487ae0677aaaaa47c7eeca63
parent555eb580e547fb263faee0a4d88482789171211b
LU-4788 lfsck: take ldlm lock before modifying visible object

Before the LFSCK modifying on the namespace visible object,
it needs to acquire related ibits lock to pervent the client
to cache stale information. The .lustre/lost+found/ and its
sub-directories also needs related ldlm locks.

Signed-off-by: Fan Yong <fan.yong@intel.com>
Change-Id: I439e02e1b7b24e87e7e6e25c5084f1c98116e7f7
Reviewed-on: http://review.whamcloud.com/10986
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
lustre/lfsck/lfsck_internal.h
lustre/lfsck/lfsck_layout.c
lustre/lfsck/lfsck_lib.c