Whamcloud - gitweb
LU-2899 lod: get ldo_stripenr correctly
authorBobi Jam <bobijam.xu@intel.com>
Mon, 4 Mar 2013 11:21:15 +0000 (19:21 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 12 Mar 2013 05:09:39 +0000 (01:09 -0400)
commit89b733638db0f137b0b2b499e238284e2cdcc7ec
tree0e37b9ef89a891a7393d7e41b089158ac10f34e0
parentc8d5aa14e50be2a85491783f169a8f4e646b9594
LU-2899 lod: get ldo_stripenr correctly

Current code relies on lod_statfs_and_check() to count the number of
activated LOD targets, while lod::ldo_stripenr derivation happens
before calling lod_statfs_and_check(), and that makes
lod::ldo_stripenr not accurate.

This patch make sure lod_statfs_and_check() called before updating
::ldo_stripenr. And if there is [de]activation happens on OST target,
client needs wait 2*lod_qos_maxage seconds to get accurate
ld_active_tgt_count number.

Signed-off-by: Bobi Jam <bobijam.xu@intel.com>
Change-Id: I37bebc69f876dd68da609fb5180bc6db36f01e84
Reviewed-on: http://review.whamcloud.com/5573
Tested-by: Hudson
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
libcfs/include/libcfs/libcfs_debug.h
lustre/lod/lod_qos.c
lustre/tests/sanity.sh