Whamcloud - gitweb
LU-8662 osd-ldiskfs: check OI mapping update 20/23220/4
authorFan Yong <fan.yong@intel.com>
Fri, 29 Jul 2016 00:26:03 +0000 (08:26 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 14 Mar 2017 02:58:13 +0000 (02:58 +0000)
commitcd38d6cb92c468372d90e627c79e0c747713839d
treecb791b850cd2cbeae8fc7ec14b6d0d7ce76816ab
parentd1f68d84f2cfdc3cf0f902fc3b44a181795648e5
LU-8662 osd-ldiskfs: check OI mapping update

Originally, we assumed that the OI mapping will not be modified
during the osd_fid_lookup(). But it is not always true, because
OI scrub may update the OI mapping for repairing inconsistency.
This patch checks the OI mapping update when osd_fid_lookup(),
once happened, then trust the latest OI mapping. It also removes
some incorrect LASSERT() checks.

Signed-off-by: Fan Yong <fan.yong@intel.com>
Change-Id: Ic2617400d56003ec67982ae5135cedc884f09e3a
Reviewed-on: https://review.whamcloud.com/23220
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/osd-ldiskfs/osd_handler.c