Whamcloud - gitweb
LU-1876 hsm: account for active IOs correctly
authorJinshan Xiong <jinshan.xiong@intel.com>
Wed, 23 Jan 2013 07:32:24 +0000 (23:32 -0800)
committerOleg Drokin <green@whamcloud.com>
Tue, 29 Jan 2013 23:34:47 +0000 (18:34 -0500)
commitd25892863a30a385cdae2b1991ab0a9ca76fcd7d
tree7ffd0d4bc51775a6956a387c72a5f6889f217276
parentaac646ef4961aae8cff0722fc3a717c2e46e31ac
LU-1876 hsm: account for active IOs correctly

We used to use refcount of lsm to account for active IOs but this
turns out wrong because empty layout files don't have a lsm.

In this patch, lov_object::lo_active_ios is invented to account for
active IOs for both raid0 and empty layout;

Signed-off-by: Jinshan Xiong <jinshan.xiong@intel.com>
Change-Id: I1b7aa16367af1d0a54f6c70bb4155b20071af225
Reviewed-on: http://review.whamcloud.com/5157
Tested-by: Hudson
Reviewed-by: Johann Lombardi <johann.lombardi@intel.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/lov/lov_cl_internal.h
lustre/lov/lov_io.c
lustre/lov/lov_object.c