Whamcloud - gitweb
LU-4471 mdd: mdd_unlink: do trans_start after sanity check 79/9379/5
authorPatrick Farrell <paf@cray.com>
Wed, 22 Jan 2014 19:04:26 +0000 (13:04 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 26 Feb 2014 23:16:23 +0000 (23:16 +0000)
commit17a521aff30bc4ef67c40bf7203be2addb84b609
tree277ded0d9b58913ba82a37ab6b1ddeed6ed0f4d9
parentc8858e9f0ff0a8d36604f8590d33077ca1069e77
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.

Lustre-commit: 754a8ac8bf4b907bb579fe441eed1ba3447d3e0f
Lustre-change: http://review.whamcloud.com/8827

Signed-off-by: Patrick Farrell <paf@cray.com>
Signed-off-by: Bob Glossman <bob.glossman@intel.com>
Change-Id: Iac3cb214f16cb8e342be6691013d1cf262775ff0
Reviewed-on: http://review.whamcloud.com/9379
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/mdd/mdd_dir.c
lustre/tests/sanity.sh