Whamcloud - gitweb
LU-10448 lod: pick primary mirror for write 11/30711/12
authorBobi Jam <bobijam.xu@intel.com>
Tue, 26 Dec 2017 10:16:40 +0000 (18:16 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 14 Feb 2018 00:51:18 +0000 (00:51 +0000)
commit6b373937774d0b3736d02b260be9a81c7eff5351
tree4f6b7a66e9fd94f3cabc5de35f28e570b9305457
parent9e338ee25609d9bbcc359c37012e6868dd6be5d3
LU-10448 lod: pick primary mirror for write

As a mirrored file being written for the first time, MDS will choose
a mirror to write the data, a primary choosing policy function is
defined in this patch (lod_primary_pick()) to avoid the mirror with
unavailable OSTs.

Signed-off-by: Bobi Jam <bobijam.xu@intel.com>
Change-Id: I5d6d0459e96583294c3040a7994c33114be1e439
Reviewed-on: https://review.whamcloud.com/30711
Reviewed-by: Jinshan Xiong <jinshan.xiong@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/lod/lod_internal.h
lustre/lod/lod_object.c
lustre/lod/lod_qos.c
lustre/tests/sanity-flr.sh