Whamcloud - gitweb
LU-4684 mdt: improve directory stripe lock 25/31425/9
authorLai Siyao <lai.siyao@intel.com>
Sun, 21 Jan 2018 05:22:24 +0000 (13:22 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 29 May 2018 04:53:28 +0000 (04:53 +0000)
commit18aee6838907192c03c5f70e88624686c1c074da
tree131c90ec44033cc7dc7b567f6aa4209c386b6cc6
parente2d7e671cf2db6df85f619b3a20ff0d780afee51
LU-4684 mdt: improve directory stripe lock

Striped directory has an implication that the first stripe is
local, and others are remote, but this is not true for migrating
directory because its stripes consists of both the original and
the newly created stripes.

This patch also put striped directory master object locking and
stripes locking into one function called mdt_reint_striped_lock(),
which simplifies locking code.

Signed-off-by: Lai Siyao <lai.siyao@intel.com>
Change-Id: I4724447e5b10c301b6799e1827f6d13a40876945
Reviewed-on: https://review.whamcloud.com/31425
Reviewed-by: Fan Yong <fan.yong@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/include/lustre_dlm.h
lustre/include/uapi/linux/lustre/lustre_idl.h
lustre/lod/lod_object.c
lustre/mdt/mdt_handler.c
lustre/mdt/mdt_internal.h
lustre/mdt/mdt_reint.c