Whamcloud - gitweb
LU-4098 lmv: Match MDT where the FID locates first 19/8019/8
authorwang di <di.wang@intel.com>
Fri, 18 Oct 2013 07:00:16 +0000 (00:00 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 30 May 2014 01:25:58 +0000 (01:25 +0000)
commit784b028e1c4564f6e6ab99b1ee765b5e4797b6c4
treeccd31f0c11d2c5f927931bdd0fbab87454f55af2
parentfed7a99441c2dd078a671cf5b3dcaf27996bf448
LU-4098 lmv: Match MDT where the FID locates first

With DNE every object can have two locks in different namespaces:
lookup lock in space of MDT storing direntry and update/open lock
in space of MDT storing inode. In lmv_find_cbdata/lmv_lock_lock,
it should try the MDT that the FID maps to first, since this can
be easily found, and only try others if that fails.

In the error handler of lmv_add_targets, it should check whether
ld_tgt_count is being increased before ld_tgt_count is being -1.

Signed-off-by: wang di <di.wang@intel.com>
Change-Id: Idf90ff97421102da97febb0aebaff3f702ff5df7
Reviewed-on: http://review.whamcloud.com/8019
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
lustre/lmv/lmv_internal.h
lustre/lmv/lmv_obd.c