Whamcloud - gitweb
LU-5982 lfsck: not unlock the object repeatedly 43/12943/3
authorFan Yong <fan.yong@intel.com>
Wed, 24 Sep 2014 04:10:29 +0000 (12:10 +0800)
committerAndreas Dilger <andreas.dilger@intel.com>
Sat, 6 Dec 2014 21:41:12 +0000 (21:41 +0000)
commit8ee9c59a3688e5026ebb914190b63970135ce2e5
tree48dc2f4b3cef2cf8cc974b64abf13dfc0331d597
parent54d11991b26c1dc4c47b98217a6495dce73ef2c2
LU-5982 lfsck: not unlock the object repeatedly

There was wrong logic in lfsck_namespace_insert_orphan() that tried to
unlock the same object twice if failed to update the object's linkEA,
then triggered low layer LBUG(). Fix it.

On the other hand, the remote orphan parent object should be marked as
LOHA_EXISTS after lfsck_namespace_create_orphan_remote() done.

Some test scripts cleanup.

Signed-off-by: Fan Yong <fan.yong@intel.com>
Change-Id: I3901d5cea8afde362dca8ee25a8d2a44e9f6ffea
Reviewed-on: http://review.whamcloud.com/12943
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
lustre/lfsck/lfsck_namespace.c
lustre/tests/sanity-lfsck.sh