Whamcloud - gitweb
LU-1303 lod: improvements and fixes
authorAlex Zhuravlev <alexey.zhuravlev@intel.com>
Wed, 10 Oct 2012 09:52:41 +0000 (13:52 +0400)
committerOleg Drokin <green@whamcloud.com>
Wed, 17 Oct 2012 01:23:22 +0000 (21:23 -0400)
commit349de1e30b10ffb8501e6e23dda75963baf8c063
treeb36837892036d1f12f338a225fa41d0b88f3a4d2
parentc2ddf78e51e7a674c3bf9e40559c5b7ca2bfe120
LU-1303 lod: improvements and fixes

- osp_statfs() returns -ENOTCONN if the corresponded OST found
  not connected. this let us to remove few additional checks in
  the allocation policy functions.

- struct obd_statfs gets new field: os_fprecreated
  LOD uses this to skip OSPs with no objects ready to use

- osp_statfs() returns number of already precerated objects
  in new os_fprecreated field

- OS_STATE_DEGRADED is ignored on the first 2 passes in RR policy

- lod_alloc_specific() to verify and skip OSPs already used in
  striping

Signed-off-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Change-Id: I86351bc1dcca7182bc5adf4eb3e03c054e33e95f
Reviewed-on: http://review.whamcloud.com/4242
Tested-by: Hudson
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Mike Pershin <tappro@whamcloud.com>
Reviewed-by: Johann Lombardi <johann.lombardi@intel.com>
lustre/include/lustre/lustre_user.h
lustre/lod/lod_qos.c
lustre/lod/lproc_lod.c
lustre/osp/osp_dev.c
lustre/ptlrpc/pack_generic.c
lustre/ptlrpc/wiretest.c
lustre/utils/wiretest.c