Whamcloud - gitweb
LU-11418 mdd: delete name if orphan doesn't exist 26/34326/3
authorLai Siyao <lai.siyao@intel.com>
Tue, 23 Oct 2018 11:17:20 +0000 (19:17 +0800)
committerOleg Drokin <green@whamcloud.com>
Mon, 1 Apr 2019 06:20:21 +0000 (06:20 +0000)
commit6a412a8671d3d76b5da55c08ada011e7aeea1e8c
tree20831a9b64df19032b7a1ac0ff3547fca2dd4ca0
parent834d54138b250ddedc06f478e9cdfdbf0c352bda
LU-11418 mdd: delete name if orphan doesn't exist

mdd_orphan_destroy() should delete name if orphan object doesn't
exist, otherwise the orphan clean thread will try to destroy this
orphan in dead loop.

add sanity test_811.

Lustre-change: https://review.whamcloud.com/33661
Lustre-commit: fffef5c29e3bdf0f96168abc3d0488bad06f33bb

Fixes: 5d89450b462f ("LU-11516 mdd: do not assert on missing orphan")
Signed-off-by: Lai Siyao <lai.siyao@whamcloud.com>
Change-Id: Id22b2fab0ac87dfb81ca9f01d8ed0338f1b12120
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Hongchao Zhang <hongchao@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/34326
Tested-by: Jenkins
Tested-by: Maloo <maloo@whamcloud.com>
lustre/include/obd_support.h
lustre/mdd/mdd_orphans.c
lustre/tests/sanity.sh