Whamcloud - gitweb
LU-11115 lod: skip max_create_count=0 OST in QoS and RR algorithms 59/32859/2
authorJian Yu <yujian@whamcloud.com>
Mon, 23 Jul 2018 22:00:46 +0000 (15:00 -0700)
committerJohn L. Hammond <jhammond@whamcloud.com>
Thu, 2 Aug 2018 19:25:15 +0000 (19:25 +0000)
commitd2f9ed4a20b5fae836560efc607e443fa996c2e2
tree108f239d632d6651be06b5ddd6f4565d1f74abff
parentcfa8d48a9851923514822a0ac62b695c0c26d91a
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: Ic2129b483ead16f8971a062e326d5ecd537b7e6c
Signed-off-by: Jian Yu <yujian@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/32859
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: John L. Hammond <jhammond@whamcloud.com>
lustre/include/lustre/lustre_user.h
lustre/lod/lod_qos.c
lustre/osp/osp_precreate.c