Whamcloud - gitweb
LU-4471 mdd: mdd_unlink: do trans_start after sanity check 27/8827/11
authorPatrick Farrell <paf@cray.com>
Wed, 22 Jan 2014 19:04:26 +0000 (13:04 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 25 Feb 2014 20:32:07 +0000 (20:32 +0000)
commit1f55f2a9071d5e7db4042b959723086dee1c379a
treed5b90bf7e1923056c862f1da5a6219b3cdc7388a
parent43fbefb13f1549c17eae73038ea9a24d773f9be2
LU-4471 mdd: mdd_unlink: do trans_start after sanity check

Currently, mdd_trans_start is called before
mdd_unlink_sanity_check. This means a remote directory
which has files in it can be removed on MDT0 before the
sanity check on MDT1 finds the files and errors, which
orphans the files on MDT1. This patch moves the sanity
check before mdd_trans_create and mdd_trans_start.

Signed-off-by: Patrick Farrell <paf@cray.com>
Change-Id: I08882b682b9f0016577214821efec4759ee5c184
Reviewed-on: http://review.whamcloud.com/8827
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
lustre/mdd/mdd_dir.c
lustre/tests/sanity.sh