Whamcloud - gitweb
LU-11115 lod: skip max_create_count=0 OST in QoS and RR algorithms 23/32823/2
authorJian Yu <yujian@whamcloud.com>
Tue, 17 Jul 2018 00:09:15 +0000 (17:09 -0700)
committerOleg Drokin <green@whamcloud.com>
Mon, 30 Jul 2018 22:24:22 +0000 (22:24 +0000)
commit5b147e47de651f1c140f69314a2d6b56ff6b14d7
treef767d1f37294ffac4472ee3feebc5e39207531f6
parent6316b42a73f815748b173134e92fb522f1ddc13d
LU-11115 lod: skip max_create_count=0 OST in QoS and RR algorithms

While choosing OST to create object, both lod_alloc_qos() and
lod_alloc_rr() functions use lod_statfs_and_check() function
to check whether the OST is available for new OST objects or not.
However, OST with max_create_count=0 is not checked in that
function and just returned as an available OST.

This patch fixes the above issue by detecting OST with
max_create_count=0 in lod_statfs_and_check() and skip it.

Change-Id: I04476a4b369e99133bd89c00155fd9f51bf0c930
Signed-off-by: Jian Yu <yujian@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/32823
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Jenkins
Reviewed-by: Bobi Jam <bobijam@hotmail.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/uapi/linux/lustre/lustre_user.h
lustre/lod/lod_object.c
lustre/lod/lod_qos.c
lustre/osp/osp_precreate.c