Whamcloud - gitweb
LU-11549 mdd: set LUSTRE_ORPHAN_FL for non-dirs 76/35776/7
authorAlexander Zarochentsev <c17826@cray.com>
Mon, 12 Aug 2019 18:42:07 +0000 (21:42 +0300)
committerOleg Drokin <green@whamcloud.com>
Sat, 7 Sep 2019 01:49:28 +0000 (01:49 +0000)
commit8d27c92a66d63aaf8b8fbe1fc73e49263b5bed1e
tree58ad1e8a30f3ac066f45940dc8382d417a1a7862
parent6fbfb01be3c45c60c418ca37280d2378f91bc565
LU-11549 mdd: set LUSTRE_ORPHAN_FL for non-dirs

mdd_mark_orphan_object() sets LUSTRE_ORPHAN_FL only for
directories, which is not correct, causing the important bit of
orphan object state not transferring across OSP link and
allowing a distributed link operation to succeed
for an orphan source object , causing a dangling reference
on one mdt and an unconnected inode on another mdt.
mdd_open_sanity_check() conditions had to be relaxed in
case of replay.

Signed-off-by: Alexander Zarochentsev <c17826@cray.com>
Change-Id: If0d868b3de4d68406e1a3b371827f354566d3e42
Reviewed-on: https://review.whamcloud.com/35776
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andrew Perepechko <c17827@cray.com>
Reviewed-by: Lai Siyao <lai.siyao@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/md_object.h
lustre/mdd/mdd_dir.c
lustre/mdd/mdd_object.c
lustre/mdt/mdt_open.c